details:   https://code.tryton.org/tryton/commit/1e15b558c655
branch:    8.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 a73f2297baa2 -r 1e15b558c655 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
@@ -1356,6 +1356,9 @@
             });
         },
         get current_record() {
+            if (this.__current_record && this.__current_record.destroyed) {
+                this.__current_record = null;
+            }
             return this.__current_record;
         },
         set current_record(record) {

Reply via email to