changeset d1d8224a302d in sao:5.8
details: https://hg.tryton.org/sao?cmd=changeset&node=d1d8224a302d
description:
Clear tree_states_done only on screen clear and reset views
issue10446
review362011002
(grafted from c3c7a1f4b6239bd1c50c0e0471b26b57011538e8)
diffstat:
src/screen.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 1c5dac1089d0 -r d1d8224a302d src/screen.js
--- a/src/screen.js Sat May 15 22:42:44 2021 +0200
+++ b/src/screen.js Fri Jun 11 00:23:59 2021 +0200
@@ -1251,8 +1251,8 @@
if (set_cursor === undefined) {
set_cursor = true;
}
- this.tree_states_done = [];
this.group.load(ids, modified);
+ this.current_view.reset();
if (ids.length && this.current_view.view_type != 'calendar') {
this.current_record = this.group.get(ids[0]);
} else {
@@ -1365,6 +1365,7 @@
clear: function() {
this.current_record = null;
this.group.clear();
+ this.tree_states_done = [];
this.views.map(function(view) {
view.reset();
});