changeset a43a83363913 in tryton:5.8 details: https://hg.tryton.org/tryton?cmd=changeset&node=a43a83363913 description: Clear tree_states_done only on screen clear and reset views
issue10446 review362011002 (grafted from ab9ce1d26e1cf3dd1386063a0ba4bb297a6b3a8e) diffstat: tryton/gui/window/view_form/screen/screen.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diffs (21 lines): diff -r ad624189e47d -r a43a83363913 tryton/gui/window/view_form/screen/screen.py --- a/tryton/gui/window/view_form/screen/screen.py Thu Jun 17 21:24:28 2021 +0200 +++ b/tryton/gui/window/view_form/screen/screen.py Fri Jun 11 00:23:59 2021 +0200 @@ -909,7 +909,6 @@ return json_domain def load(self, ids, set_cursor=True, modified=False, position=-1): - self.tree_states_done.clear() self.group.load(ids, modified=modified, position=position) self.current_view.reset() if ids and self.current_view.view_type != 'calendar': @@ -1129,6 +1128,9 @@ def clear(self): self.current_record = None self.group.clear() + self.tree_states_done.clear() + for view in self.views: + view.reset() def on_change(self, fieldname, attr): self.current_record.on_change(fieldname, attr)