diff options
| author | Martin Trigaux <mat@odoo.com> | 2020-06-08 06:15:53 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-06-08 09:00:02 +0000 |
| commit | c9f93eb6396159a4fd46e9767c075d6e28f888d6 (patch) | |
| tree | 97bd330c13cbe0f5c1da8bfd7a0fd7bbd8c3deaf /odoo/tools | |
| parent | 308b1d9b0969aa062a62a3a19dbda39731b95651 (diff) | |
[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) <mat@odoo.com>
Diffstat (limited to 'odoo/tools')
| -rw-r--r-- | odoo/tools/config.py | 4 |
1 files changed, 0 insertions, 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: |
