details: https://code.tryton.org/tryton/commit/3acc31c8c8f5
branch: 7.0
user: José Antonio Díaz Miralles <[email protected]>
date: Sun May 10 11:44:04 2026 +0200
description:
Sanitize screen.current_record if it is already destroyed
Closes #14827
(grafted from 9cb776c27fda504a91312636371273483f404152)
diffstat:
sao/src/screen.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 731406d3e4e7 -r 3acc31c8c8f5 sao/src/screen.js
--- a/sao/src/screen.js Mon Jun 08 09:09:23 2026 +0200
+++ b/sao/src/screen.js Sun May 10 11:44:04 2026 +0200
@@ -1305,6 +1305,9 @@
});
},
get current_record() {
+ if (this.__current_record && this.__current_record.destroyed) {
+ this.__current_record = null;
+ }
return this.__current_record;
},
set current_record(record) {