diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-01-14 10:34:50 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-01-14 10:34:50 +0100 |
| commit | 3cbc9dd6c034f8bbba8a75def07d063e3f625bdb (patch) | |
| tree | 55d7e9b940e27a1dad5415b6b721ab464d0bc418 /odoo/tools | |
| parent | 976429c8c69b2225e96ccb0e254ee4849832ed27 (diff) | |
| parent | 6a0675d36dd888daa4183f3d609ce334ed3cb493 (diff) | |
[MERGE] forward port branch 12.0 up to 6a0675d36dd
Diffstat (limited to 'odoo/tools')
| -rw-r--r-- | odoo/tools/translate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py index d458d779c27..e20ebf9fed7 100644 --- a/odoo/tools/translate.py +++ b/odoo/tools/translate.py @@ -1098,8 +1098,8 @@ def trans_load_data(cr, fileobj, fileformat, lang, lang_name=None, verbose=True, dic['lang'] = lang dic.update(zip(fields, row)) - # ignore empty value that may be set from base language - if not dic['value']: + # do not import empty values + if not env.context.get('create_empty_translation', False) and not dic['value']: return if use_pot_reference: |
