Save tree state before cancel of the record on reload

issue7818
review54411002
This commit is contained in:
Cédric Krier committed 2018-10-31 18:30:57 +01:00
1 parent 630ef1f570
commit 314d39aad2
1 file changed
+1 -1
+1 -1
View File
@@ -725,7 +725,6 @@
if (this.screen.current_record) {
record_id = this.screen.current_record.id;
}
this.screen.save_tree_state(false);
if (this.screen.current_view.view_type != 'form') {
return this.screen.search_filter(
this.screen.screen_container.search_entry.val())
@@ -752,6 +751,7 @@
if (test_modified) {
return this.modified_save().then(reload);
} else {
this.screen.save_tree_state(false);
return reload();
}
},