details:   https://code.tryton.org/tryton/commit/7267bae222e0
branch:    default
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
diffstat:

 sao/src/tab.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r bcfbef3830fe -r 7267bae222e0 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(

Reply via email to