changeset 1f32f466dd68 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=1f32f466dd68
description:
        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
diffstat:

 src/screen.js |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 3ad2624f7035 -r 1f32f466dd68 src/screen.js
--- a/src/screen.js     Mon Oct 12 11:25:24 2020 +0200
+++ b/src/screen.js     Sun Oct 18 15:58:43 2020 +0200
@@ -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 {

Reply via email to