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:
Cédric Krier committed 2020-10-12 12:57:49 +02:00
1 parent 001245bf60
commit f9c3f80f16
1 file changed
-1
-1
View File
@@ -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'] = \