Use empty context to call User.get_preferences
It is needed if we want to get the real value stored on the user record. issue5798 review26561002
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ def create_company(party=None, currency=None, config=None):
|
||||
|
||||
if not config:
|
||||
config = get_config()
|
||||
config._context = User.get_preferences(True, config.context)
|
||||
config._context = User.get_preferences(True, {})
|
||||
return company_config
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user