changeset c3c7a1f4b623 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=c3c7a1f4b623
description:
Clear tree_states_done only on screen clear and reset views
issue10446
review362011002
diffstat:
src/screen.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 325858970d4f -r c3c7a1f4b623 src/screen.js
--- a/src/screen.js Fri Jun 11 00:22:22 2021 +0200
+++ b/src/screen.js Fri Jun 11 00:23:59 2021 +0200
@@ -1291,8 +1291,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 {
@@ -1424,6 +1424,7 @@
clear: function() {
this.current_record = null;
this.group.clear();
+ this.tree_states_done = [];
this.views.map(function(view) {
view.reset();
});