details: https://code.tryton.org/tryton/commit/b622a8a9f29d
branch: 8.0
user: Cédric Krier <[email protected]>
date: Fri Jul 17 12:58:29 2026 +0200
description:
Compare tab against view index less or equals to 0
The view index may be -1 is the view is not yet displayed.
Closes #14961
(grafted from 7267bae222e053d7ebfb59981ee13ae941b469dd)
diffstat:
sao/src/tab.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f69d86a4f18d -r b622a8a9f29d sao/src/tab.js
--- a/sao/src/tab.js Fri Jul 17 11:40:28 2026 +0200
+++ b/sao/src/tab.js Fri Jul 17 12:58:29 2026 +0200
@@ -827,7 +827,7 @@
}
var compare = Sao.common.compare;
return (
- (this.screen.view_index === 0) &&
+ (this.screen.view_index <= 0) &&
(this.screen.model_name === attributes.model) &&
(this.attributes.res_id === attributes.res_id) &&
(compare(