diff --git a/trytond/trytond/ir/translation.py b/trytond/trytond/ir/translation.py index b9b62dc8b3..9cb67d7052 100644 --- a/trytond/trytond/ir/translation.py +++ b/trytond/trytond/ir/translation.py @@ -856,13 +856,15 @@ class Translation(ModelSQL, ModelView): if (model in fs_id2prop and res_id in fs_id2prop[model]): res_id, noupdate = fs_id2prop[model][res_id] + elif res_id: + continue if res_id: try: res_id = int(res_id) except ValueError: - res_id = None - if not res_id: + continue + else: res_id = -1 translation.res_id = res_id