From e30c625fc47fd866f4025e05233e6f2fcd20efb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 28 Mar 2014 20:08:25 +0100 Subject: [PATCH] Force Dict client value to be dict The Dict widget requires that get_client returns a dict. issue3796 review4671002 --- tryton/gui/window/view_form/model/field.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tryton/gui/window/view_form/model/field.py b/tryton/gui/window/view_form/model/field.py index c73813255c..9cd870a997 100644 --- a/tryton/gui/window/view_form/model/field.py +++ b/tryton/gui/window/view_form/model/field.py @@ -905,6 +905,9 @@ class DictField(Field): _default = {} + def get_client(self, record): + return super(DictField, self).get_client(record) or self._default + def validation_domains(self, record): screen_domain, attr_domain = self.domains_get(record) return screen_domain, screen_domain