summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odoo/tools/translate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py
index 0fb19676056..36d225c8093 100644
--- a/odoo/tools/translate.py
+++ b/odoo/tools/translate.py
@@ -656,7 +656,7 @@ class PoFileReader:
translation = entry.msgstr
found_code_occurrence = False
for occurrence, line_number in entry.occurrences:
- match = re.match(r'(model|model_terms):([\w.]+),([\w]+):(\w+)\.([\w-]+)', occurrence)
+ match = re.match(r'(model|model_terms):([\w.]+),([\w]+):(\w+)\.([^ ]+)', occurrence)
if match:
type, model_name, field_name, module, xmlid = match.groups()
yield {