details:   https://code.tryton.org/tryton/commit/89e59ce6f450
branch:    default
user:      Cédric Krier <[email protected]>
date:      Thu Apr 02 10:26:27 2026 +0200
description:
        Refresh resources when reloading record of form view

        As the record is only cancelled and not recreated, the cached resources 
are
        kept so they must be refreshed.

        Closes #14733
diffstat:

 sao/src/tab.js                   |  2 ++
 tryton/tryton/gui/window/form.py |  2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r 463f49bfc034 -r 89e59ce6f450 sao/src/tab.js
--- a/sao/src/tab.js    Thu Mar 26 18:00:24 2026 +0100
+++ b/sao/src/tab.js    Thu Apr 02 10:26:27 2026 +0200
@@ -951,6 +951,8 @@
                                 }
                                 return set_cursor;
                             });
+                    } else {
+                        this.refresh_resources(true);
                     }
                     return set_cursor;
                 })
diff -r 463f49bfc034 -r 89e59ce6f450 tryton/tryton/gui/window/form.py
--- a/tryton/tryton/gui/window/form.py  Thu Mar 26 18:00:24 2026 +0100
+++ b/tryton/tryton/gui/window/form.py  Thu Apr 02 10:26:27 2026 +0200
@@ -538,6 +538,8 @@
                     self.screen.current_record = record
                     set_cursor = True
                     break
+        else:
+            self.refresh_resources(True)
         self.screen.display(set_cursor=set_cursor)
         self.info_bar_clear()
         self.set_buttons_sensitive()

Reply via email to