diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2021-03-24 08:12:50 +0000 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2021-03-24 09:39:23 +0000 |
| commit | 62e7b161d39e5f5f6751cf87826fa6f7b729f83d (patch) | |
| tree | 95ccee29395bfd338b4b552993e017135314faf4 /odoo | |
| parent | a384dc0905190e9e469ed5c6e65fc0e9abd93b8d (diff) | |
[FIX] translate.py: CSV export correct module name
Correct small typo that the module when exporting translations as CSV
file might have been the wrong module because we used variable from
previous loop.
This did not seem to cause any issue since in this given case in import
we got the module from the part before . in XML ID ({module}.{name})
that was right.
found when working on opw-2439029
closes odoo/odoo#68284
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'odoo')
| -rw-r--r-- | odoo/tools/translate.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py index e12be2998f6..a6735cbaf3d 100644 --- a/odoo/tools/translate.py +++ b/odoo/tools/translate.py @@ -1070,7 +1070,8 @@ class TranslationModuleReader: continue for record in records: - xml_name = "%s.%s" % (imd_per_id[record.id].module, imd_per_id[record.id].name) + module = imd_per_id[record.id].module + xml_name = "%s.%s" % (module, imd_per_id[record.id].name) for field_name, field in record._fields.items(): if field.translate: name = model + "," + field_name |
