details:   https://code.tryton.org/tryton/commit/bec9036d96d0
branch:    7.0
user:      Cédric Krier <[email protected]>
date:      Thu Apr 16 22:50:42 2026 +0200
description:
        Wait for the next/previous display promises before clearing info and 
set button sensitiveness

        #14769
        (grafted from 852530086b2deec89e22a0b25fd7288e84648824)
diffstat:

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

diffs (30 lines):

diff -r 5115e32ad9e4 -r bec9036d96d0 sao/src/tab.js
--- a/sao/src/tab.js    Thu Apr 16 22:48:34 2026 +0200
+++ b/sao/src/tab.js    Thu Apr 16 22:50:42 2026 +0200
@@ -940,18 +940,18 @@
         },
         previous: function() {
             return this.modified_save().then(() => {
-                var prm = this.screen.display_previous();
-                this.info_bar.clear();
-                this.set_buttons_sensitive();
-                return prm;
+                return this.screen.display_previous().then(() => {
+                    this.info_bar.clear();
+                    this.set_buttons_sensitive();
+                });
             });
         },
         next: function() {
             return this.modified_save().then(() => {
-                var prm = this.screen.display_next();
-                this.info_bar.clear();
-                this.set_buttons_sensitive();
-                return prm;
+                return this.screen.display_next().then(() => {
+                    this.info_bar.clear();
+                    this.set_buttons_sensitive();
+                });
             });
         },
         search: function() {

Reply via email to