Subject: changeset in tryton:5.0 Always display tree views to keep model up to date From: Cédric Krier <[email protected]>
changeset 315e10b42d1b in tryton:5.0 details: https://hg.tryton.org/tryton?cmd=changeset;node=315e10b42d1b description: Always display tree views to keep model up to date Any tree view may be used even if it is not shown e.g. to save tree state. So the model of TreeView which keeps a reference to the group must be updated if the group has changed. issue7885 review60491002 (grafted from 9e9ae0cba1c352bb95ef1268bad1abf904e17792) diffstat: tryton/gui/window/view_form/screen/screen.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diffs (15 lines): diff -r 45cdea8c7ee6 -r 315e10b42d1b tryton/gui/window/view_form/screen/screen.py --- a/tryton/gui/window/view_form/screen/screen.py Wed Jan 30 10:10:00 2019 +0100 +++ b/tryton/gui/window/view_form/screen/screen.py Wed Jan 30 10:11:33 2019 +0100 @@ -904,7 +904,11 @@ self.search_active(self.current_view.view_type in ('tree', 'graph', 'calendar')) for view in self.views: + # Always display tree view to update model + # because view can be used even if it is not shown + # like for save_tree_state if (view == self.current_view + or view.view_type == 'tree' or view.widget.get_parent()): view.display() self.current_view.widget.set_sensitive(
