From c9f93eb6396159a4fd46e9767c075d6e28f888d6 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 8 Jun 2020 06:15:53 +0000 Subject: [PATCH] [FIX] tools: remove max language length constraint There is no reason for this constraint to be. Languages with a code longer than 5 do exists in standard, (e.g. ar_001, sr@latin) Introduced at 004a0b996ff8f2694 Fixes odoo/odoo#52558 closes odoo/odoo#52569 X-original-commit: 54340487adaed962750c9719fb50fc7e000da476 Signed-off-by: Martin Trigaux (mat) --- odoo/tools/config.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 8489775af85..e703ee33ad9 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -515,10 +515,6 @@ class configmanager(object): if opt.pg_path: self.options['pg_path'] = opt.pg_path - if self.options.get('language', False): - if len(self.options['language']) > 5: - raise Exception('ERROR: The Lang name must take max 5 chars, Eg: -lfr_BE') - self.options['test_enable'] = bool(self.options['test_tags']) if opt.save: