From 2dd3e1c5f358953083a0d1bb434494889a7dbeb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 25 Aug 2012 15:42:53 +0200 Subject: [PATCH] Fix missing on_change_with initialisation for non-grouped calls issue2759 review481004 (transplanted from 38340c974fc513f3e3800fa8c1a6db35e3c1d327) --- tryton/gui/window/view_form/model/record.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py index 4bbc56bb81..bf54c2f257 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -534,6 +534,8 @@ class Record(SignalEvent): for fieldname, value in result.items(): self.group.fields[fieldname].set_on_change(self, value) for fieldname in later: + on_change_with = self.group.fields[fieldname].attrs.get( + 'on_change_with') values = self._get_on_change_args(on_change_with) try: result = RPCExecute('model', self.model_name,