Reset screen order only when it is below a parent

Otherwise the default order from the action is lost when the screen is
instantiated.

issue9692
review302281002
This commit is contained in:
Cédric Krier committed 2020-10-18 15:58:43 +02:00
1 parent 901c4c4206
commit 6c822b6d03
1 file changed
+3 -1
+3 -1
View File
@@ -1184,9 +1184,11 @@
this.views.map(function(view) {
view.reset();
});
this.order = null;
this.group = group;
this.model = group.model;
if (this.group.parent) {
this.order = null;
}
if (group && group.length) {
this.current_record = group[0];
} else {