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