changeset 11b9ba05e28c in trytond:6.2
details: https://hg.tryton.org/trytond?cmd=changeset&node=11b9ba05e28c
description:
Do not override trytond config when instantiate ir.configuration
issue11797
review437521003
(grafted from 9e52c56a73159a78c891da0eeb73a90ccfb15790)
diffstat:
trytond/ir/configuration.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r e4816f030e5a -r 11b9ba05e28c trytond/ir/configuration.py
--- a/trytond/ir/configuration.py Fri Oct 21 13:25:30 2022 +0200
+++ b/trytond/ir/configuration.py Wed Oct 26 23:29:24 2022 +0200
@@ -21,8 +21,7 @@
language = cls._get_language_cache.get(None)
if language is not None:
return language
- config = cls(1)
- language = config.language
+ language = cls(1).language
if not language:
language = config.get('database', 'language')
cls._get_language_cache.set(None, language)