[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 004a0b996f

Fixes odoo/odoo#52558

closes odoo/odoo#52569

X-original-commit: 54340487adaed962750c9719fb50fc7e000da476
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Martin Trigaux
2020-06-08 09:00:02 +00:00
parent 308b1d9b09
commit c9f93eb639
-4
View File
@@ -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: