details: https://code.tryton.org/tryton/commit/4d8ad0b886a6
branch: 7.8
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 710333542a11 -r 4d8ad0b886a6 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
@@ -1348,6 +1348,9 @@
});
},
get current_record() {
+ if (this.__current_record && this.__current_record.destroyed) {
+ this.__current_record = null;
+ }
return this.__current_record;
},
set current_record(record) {