From a61c0e3fc4495694bc5caa9a5478e6dc973ceb0e Mon Sep 17 00:00:00 2001 From: "Chong Wang (cwg)" Date: Tue, 20 Sep 2022 08:58:21 +0000 Subject: [PATCH] [FIX] tools: export pot files Before this commit, it was not possible to export the .pot files Part-of: odoo/odoo#100573 --- odoo/tools/translate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo/tools/translate.py b/odoo/tools/translate.py index 6620842cf65..95442a9fd01 100644 --- a/odoo/tools/translate.py +++ b/odoo/tools/translate.py @@ -901,10 +901,10 @@ class TranslationModuleReader: retrieve source terms only if not set """ - def __init__(self, cr, modules=None, lang='en_US'): + def __init__(self, cr, modules=None, lang=None): self._cr = cr self._modules = modules or ['all'] - self._lang = lang + self._lang = lang or 'en_US' self.env = odoo.api.Environment(cr, odoo.SUPERUSER_ID, {}) self._to_translate = [] self._path_list = [(path, True) for path in odoo.addons.__path__]