From 4a06e01d9c5b133756ef65a4a7f776b7da048ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 24 Mar 2014 16:00:23 +0100 Subject: [PATCH] Prevent excessive call to save_tree_state issue3784 review4611003 --- tryton/gui/window/view_form/view/form_gtk/many2many.py | 1 - tryton/gui/window/view_form/view/form_gtk/one2many.py | 1 - 2 files changed, 2 deletions(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/many2many.py b/tryton/gui/window/view_form/view/form_gtk/many2many.py index 48e9825b1d..12bee20f09 100644 --- a/tryton/gui/window/view_form/view/form_gtk/many2many.py +++ b/tryton/gui/window/view_form/view/form_gtk/many2many.py @@ -246,7 +246,6 @@ class Many2Many(WidgetInterface): return True def set_value(self, record, field): - self.screen.save_tree_state() self.screen.current_view.set_value() return True diff --git a/tryton/gui/window/view_form/view/form_gtk/one2many.py b/tryton/gui/window/view_form/view/form_gtk/one2many.py index 5f191767d3..123b80d408 100644 --- a/tryton/gui/window/view_form/view/form_gtk/one2many.py +++ b/tryton/gui/window/view_form/view/form_gtk/one2many.py @@ -468,7 +468,6 @@ class One2Many(WidgetInterface): return True def set_value(self, record, field): - self.screen.save_tree_state() self.screen.current_view.set_value() if self.screen.modified(): # TODO check if required record.modified_fields.setdefault(field.name)