diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py index 36a350ddaaf..37db19b2bdb 100644 --- a/odoo/tools/translate.py +++ b/odoo/tools/translate.py @@ -748,6 +748,7 @@ class PoFileWriter: for typy, name, res_id in tnrs: if typy == 'code': code = True + res_id = 0 if isinstance(res_id, int) or res_id.isdigit(): # second term of occurrence must be a digit # occurrence line at 0 are discarded when rendered to string