details:   https://code.tryton.org/tryton/commit/9cb776c27fda
branch:    default
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
diffstat:

 sao/src/screen.js |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r ef20db7f72fa -r 9cb776c27fda sao/src/screen.js
--- a/sao/src/screen.js Thu Apr 23 00:57:30 2026 +0200
+++ b/sao/src/screen.js Sun May 10 11:44:04 2026 +0200
@@ -1358,6 +1358,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