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
This commit is contained in:
Cédric Krier
2026-04-02 10:26:27 +02:00
parent 07fb78a0fb
commit ee19f28b2c
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -875,6 +875,8 @@
}.bind(this));
return set_cursor;
}.bind(this));
} else {
this.refresh_resources(true);
}
return set_cursor;
}.bind(this))
+2
View File
@@ -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()