details:   https://code.tryton.org/tryton/commit/706f5513fa79
branch:    7.8
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
        (grafted from 9950ddea3804cb6129707b07728e40c6ec4d06c0)
diffstat:

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

diffs (22 lines):

diff -r 83b0b4f09e4a -r 706f5513fa79 sao/src/wizard.js
--- a/sao/src/wizard.js Mon May 18 18:28: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;

Reply via email to