changeset 2c343669a5a7 in sao:5.6
details: https://hg.tryton.org/sao?cmd=changeset;node=2c343669a5a7
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 0fe97740c012 -r 2c343669a5a7 src/screen.js
--- a/src/screen.js Sun Oct 18 20:31:49 2020 +0200
+++ b/src/screen.js Sun Oct 18 15:58:43 2020 +0200
@@ -1164,9 +1164,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 {