From 045e87fc0f1fff4b1bc95d26ced571090d1842a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Mon, 24 Dec 2012 10:27:26 +0100 Subject: [PATCH] Prevent call to display on the _group_changed trigger when there is a parent. If there is a parent then the call to display will have been taken into account by the custom signal system included in tryton. review606002 --- tryton/gui/window/view_form/screen/screen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py index 291478326c..d2b71adbbd 100644 --- a/tryton/gui/window/view_form/screen/screen.py +++ b/tryton/gui/window/view_form/screen/screen.py @@ -244,7 +244,8 @@ class Screen(SignalEvent): self.signal('record-modified') def _group_changed(self, group, record): - self.display() + if not self.parent: + self.display() def __get_current_record(self): if (self.__current_record is not None