diff options
| author | Olivier Dony <odo@openerp.com> | 2017-06-01 01:10:29 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-06-01 01:10:29 +0200 |
| commit | ba15df47cb25625cb0921cba554aa0879048c90a (patch) | |
| tree | 3c9aea1bd49f22ab3e70742d8b33ec11e6e88a1b /odoo/models.py | |
| parent | f9a1241721d1457dd7ddd0eebb1ec0ba4fba3225 (diff) | |
| parent | 17b847c0f67e51279e4c6d53e847d9918b41b7f7 (diff) | |
[MERGE] Forward-port saas-15 up to 17b847c0f67e51279e4c6d53e847d9918b41b7f7
Diffstat (limited to 'odoo/models.py')
| -rw-r--r-- | odoo/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/models.py b/odoo/models.py index 274b398c4bc..da99e73f2fe 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -3817,7 +3817,7 @@ class BaseModel(object): del vals['source'] # remove source to avoid triggering _set_src del vals['module'] # duplicated vals is not linked to any module vals['res_id'] = target_id - if vals['lang'] == old.env.lang: + if vals['lang'] == old.env.lang and field.translate is True: # 'source' to force the call to _set_src # 'value' needed if value is changed in copy(), want to see the new_value vals['source'] = old_wo_lang[name] |
