From 7ba03db6ebee5b5b13621c7f76f704992f3cd3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 2 Apr 2026 10:26:27 +0200 Subject: [PATCH] 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 --- sao/src/tab.js | 2 ++ tryton/tryton/gui/window/form.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sao/src/tab.js b/sao/src/tab.js index 2b0d684bb1..f775090978 100644 --- a/sao/src/tab.js +++ b/sao/src/tab.js @@ -951,6 +951,8 @@ } return set_cursor; }); + } else { + this.refresh_resources(true); } return set_cursor; }) diff --git a/tryton/tryton/gui/window/form.py b/tryton/tryton/gui/window/form.py index 313e626fb7..005c868b61 100644 --- a/tryton/tryton/gui/window/form.py +++ b/tryton/tryton/gui/window/form.py @@ -538,6 +538,8 @@ class Form(TabContent): 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()