projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
177e0d9
)
[FIX] Do not omit current language value when saving translation box values
author
Fabien Meghazi
<fme@openerp.com>
Tue, 14 Feb 2012 17:05:13 +0000
(18:05 +0100)
committer
Fabien Meghazi
<fme@openerp.com>
Tue, 14 Feb 2012 17:05:13 +0000
(18:05 +0100)
bzr revid: fme@openerp.com-
20120214170513
-64v5ifw7tp8i168m
addons/web/static/src/js/views.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/views.js
b/addons/web/static/src/js/views.js
index
e0131f9
..
5699719
100644
(file)
--- a/
addons/web/static/src/js/views.js
+++ b/
addons/web/static/src/js/views.js
@@
-1056,13
+1056,11
@@
session.web.TranslateDialog = session.web.Dialog.extend({
if (code === self.view_language) {
_.each(data, function(value, field) {
self.view.fields[field].set_value(value);
- self.view.fields[field].dirty = true;
- });
- } else {
- trads_mutex.exec(function() {
- return self.view.dataset.write(self.view.datarecord.id, data, { context : { 'lang': code } });
});
}
+ trads_mutex.exec(function() {
+ return self.view.dataset.write(self.view.datarecord.id, data, { context : { 'lang': code } });
+ });
});
this.close();
},