summaryrefslogtreecommitdiff
path: root/odoo/tools/translate.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/tools/translate.py')
-rw-r--r--odoo/tools/translate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py
index 24631f4d53f..e12be2998f6 100644
--- a/odoo/tools/translate.py
+++ b/odoo/tools/translate.py
@@ -601,7 +601,8 @@ class CSVFileReader:
# res_id is an external id and must follow <module>.<name>
entry["module"], entry["imd_name"] = entry["res_id"].split(".")
entry["res_id"] = None
- entry["imd_model"] = entry["name"].split(":")[0]
+ if entry["type"] == "model" or entry["type"] == "model_terms":
+ entry["imd_model"] = entry["name"].partition(',')[0]
if entry["type"] == "code":
if entry["src"] == self.prev_code_src: