From 6c822b6d030eba67350297fb23fad7088924b9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 18 Oct 2020 15:58:43 +0200 Subject: [PATCH] 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 --- src/screen.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screen.js b/src/screen.js index c2a709dd4d..ebacdf803e 100644 --- a/src/screen.js +++ b/src/screen.js @@ -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 {