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:
Cédric Krier
2016-08-23 18:46:54 +02:00
parent cf94c670d3
commit 47ffc61032
+1 -1
View File
@@ -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