From f9c3f80f164c44be2d6c8f9065453c97d65fa122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 12 Oct 2020 12:57:49 +0200 Subject: [PATCH] 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 --- trytond/res/user.py | 1 - 1 file changed, 1 deletion(-) diff --git a/trytond/res/user.py b/trytond/res/user.py index a2f0750962..86cf9e1ab8 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -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'] = \