issue12553.diff # [sao] Select first visible siblings when page is hidden

#162155
This commit is contained in:
Raimon Esteve 2023-11-15 07:34:22 +01:00
parent 9c11c6bc5e
commit 2633b888d8
2 changed files with 15 additions and 0 deletions

13
issue12553.diff Normal file
View File

@ -0,0 +1,13 @@
diff --git a/tryton/sao/src/view/form.js b/tryton/sao/src/view/form.js
index 7c291d6c5a..50167d704a 100644
--- a/tryton/sao/src/view/form.js
+++ b/tryton/sao/src/view/form.js
@@ -872,7 +872,7 @@ function eval_pyson(value){
hide: function() {
Sao.View.Form.Page._super.hide.call(this);
if (this.el.hasClass('active')) {
- this.el.next(':visible').find('a').tab('show');
+ this.el.siblings(':visible').first().find('a').tab('show');
}
}
});

2
series
View File

@ -129,3 +129,5 @@ issue12678.diff # [account_statement] Not delete statement lines when statament
issue11590.diff # [bank] Hide inactive accounts from party bank accounts
issue7697.diff # [stock] Do not compute internal quantity for stock move created without product nor unit
issue12553.diff # [sao] Select first visible siblings when page is hidden