summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-11-22 08:06:19 +0000
committerfw-bot <otis@odoo.com>2019-11-22 10:26:19 +0000
commitc854bca219e2798832375181774c4ddbdd629a80 (patch)
tree3d5b8648ca39d1e17995837534f7bd1c0561a539
parentf02bfd3daaba65a38b08d8d8de7ce4a789ca219b (diff)
[REV] tools: partially revert 0ec6acc458e1
No justification, commit message not linked to the diff. If there is an issue in the line_number extraction it must be investigated. I suspect an outdated polib version. closes odoo/odoo#40684 X-original-commit: 0f92dae8eb76a47326bd2bb8924df8fa09645145 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
-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 120ba52fdb9..1a96b8f192e 100644
--- a/odoo/tools/translate.py
+++ b/odoo/tools/translate.py
@@ -631,7 +631,7 @@ class PoFileReader:
'src': source,
'value': translation,
'comments': comments,
- 'res_id': int(line_number or 0),
+ 'res_id': int(line_number),
'module': module,
}
continue