details: https://code.tryton.org/tryton/commit/9950ddea3804
branch: default
user: Cédric Krier <[email protected]>
date: Tue May 19 17:13:41 2026 +0200
description:
Set __processing when processing wizard state
The protection was copied from tryton but it was missing this
activation.
Closes #14846
diffstat:
sao/src/wizard.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r f43e7106ddee -r 9950ddea3804 sao/src/wizard.js
--- a/sao/src/wizard.js Tue May 19 15:22:00 2026 +0200
+++ b/sao/src/wizard.js Tue May 19 17:13:41 2026 +0200
@@ -55,6 +55,7 @@
if (this.__processing || this.__waiting_response) {
return jQuery.when();
}
+ this.__processing = true;
var process = function() {
if (this.state == this.end_state) {
return this.end();
@@ -113,8 +114,8 @@
} else {
prms.push(execute_actions());
}
- this.__processing = false;
- return jQuery.when.apply(jQuery, prms);
+ return jQuery.when.apply(jQuery, prms).then(
+ () => this.__processing = false);
}, result => {
if (!result || !this.screen) {
this.state = this.end_state;