From 1f2256d545a03c81cee1ea88b068ff13675d633f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Aug 2019 17:12:33 +0200 Subject: [PATCH] Call change_with selection method with an instance issue8293 --- trytond/model/model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trytond/model/model.py b/trytond/model/model.py index a79ac9090b..fa3f5f4233 100644 --- a/trytond/model/model.py +++ b/trytond/model/model.py @@ -201,8 +201,7 @@ class Model(URLMixin, PoolBase, metaclass=ModelMeta): change_with = props.get('selection_change_with') if change_with: selection = getattr( - Relation, props['selection'])( - dict((p, None) for p in change_with)) + Relation(), props['selection'])() else: selection = getattr( Relation, props['selection'])()