changeset 578c0d22311c in sao:5.4
details: https://hg.tryton.org/sao?cmd=changeset;node=578c0d22311c
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
        (grafted from 1f32f466dd68bdb52ebfcf661bc9ca90178a56b4)
diffstat:

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

diffs (16 lines):

diff -r 5a4af3d949f1 -r 578c0d22311c src/screen.js
--- a/src/screen.js     Sun Oct 18 20:32:17 2020 +0200
+++ b/src/screen.js     Sun Oct 18 15:58:43 2020 +0200
@@ -1157,9 +1157,11 @@
             }
             group.screens.push(this);
             this.tree_states_done = [];
-            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