From c854bca219e2798832375181774c4ddbdd629a80 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 22 Nov 2019 08:06:19 +0000 Subject: [PATCH] [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) --- odoo/tools/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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