Reload the context after creating a company with the config wizard
To get the new company set in the context, we must not fill the context with an empty company nor employee. issue9543 review318451002
This commit is contained in:
1 parent
001245bf60
commit
f9c3f80f16
1 file changed
-1
@@ -452,7 +452,6 @@ class User(DeactivableMixin, ModelSQL, ModelView):
|
||||
else:
|
||||
res['language'] = Config.get_language()
|
||||
else:
|
||||
res[field] = None
|
||||
if getattr(user, field):
|
||||
res[field] = getattr(user, field).id
|
||||
res[field + '.rec_name'] = \
|
||||
|
||||
Reference in new issue
Block a user