details: https://code.tryton.org/tryton/commit/7a8caca5a14e
branch: 6.0
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
(grafted from 89e59ce6f450c83d59c7f83313c0bad59b58ff04)
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 0e47ee80cb39 -r 7a8caca5a14e sao/src/tab.js
--- a/sao/src/tab.js Wed Apr 01 18:24:35 2026 +0200
+++ b/sao/src/tab.js Thu Apr 02 10:26:27 2026 +0200
@@ -875,6 +875,8 @@
}.bind(this));
return set_cursor;
}.bind(this));
+ } else {
+ this.refresh_resources(true);
}
return set_cursor;
}.bind(this))
diff -r 0e47ee80cb39 -r 7a8caca5a14e tryton/tryton/gui/window/form.py
--- a/tryton/tryton/gui/window/form.py Wed Apr 01 18:24:35 2026 +0200
+++ b/tryton/tryton/gui/window/form.py Thu Apr 02 10:26:27 2026 +0200
@@ -537,6 +537,8 @@
self.screen.current_record = record
set_cursor = True
break
+ else:
+ self.refresh_resources(True)
self.screen.display(set_cursor=set_cursor)
self.message_info()
self.set_buttons_sensitive()