From ee19f28b2cf619e9ab6806245f9dc9a51ac81f4d 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 (grafted from 89e59ce6f450c83d59c7f83313c0bad59b58ff04) --HG-- branch : 6.0 --- 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 c55f6ae357..771526d71b 100644 --- a/sao/src/tab.js +++ b/sao/src/tab.js @@ -875,6 +875,8 @@ }.bind(this)); return set_cursor; }.bind(this)); + } else { + this.refresh_resources(true); } return set_cursor; }.bind(this)) diff --git a/tryton/tryton/gui/window/form.py b/tryton/tryton/gui/window/form.py index b54ba74983..6a7cf1162f 100644 --- a/tryton/tryton/gui/window/form.py +++ b/tryton/tryton/gui/window/form.py @@ -537,6 +537,8 @@ class Form(SignalEvent, TabContent): 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()