From 305e61b3f23d7460638ea455010a49d7aa0e8362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 10 Sep 2012 13:28:19 +0200 Subject: [PATCH] Force record-message signal after display of views If it is done before the modified state of the view could not be accurate. --- tryton/gui/window/view_form/screen/screen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py index 79f1856ba3..21dfa23467 100644 --- a/tryton/gui/window/view_form/screen/screen.py +++ b/tryton/gui/window/view_form/screen/screen.py @@ -676,8 +676,7 @@ class Screen(SignalEvent): else: if (self.current_record and self.current_record in self.current_record.group): - # Force record-message signal - self.current_record = self.current_record + pass elif self.group: self.current_record = self.group[0] else: @@ -698,6 +697,8 @@ class Screen(SignalEvent): if set_cursor: self.set_cursor(reset_view=False) self.set_tree_state() + # Force record-message signal + self.current_record = self.current_record def display_next(self): view = self.current_view