changeset f47c9ad1c120 in tryton:6.0 details: https://hg.tryton.org/tryton?cmd=changeset&node=f47c9ad1c120 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 8e965a90a7f8 -r f47c9ad1c120 tryton/gui/window/view_form/screen/screen.py --- a/tryton/gui/window/view_form/screen/screen.py Thu Jun 17 21:23:29 2021 +0200 +++ b/tryton/gui/window/view_form/screen/screen.py Fri Jun 11 00:23:59 2021 +0200 @@ -910,7 +910,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': @@ -1149,6 +1148,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)