details:   https://code.tryton.org/tryton/commit/8911683dcc4c
branch:    8.0
user:      Sergi Almacellas Abellana <[email protected]>
date:      Fri Jul 03 15:31:25 2026 +0200
description:
        Return False when scanning code fails instead of using an invalid empty 
list

        Closes #14923
        (grafted from c825df1c785d0cfa15be7c1748716f8dd1a6149d)
diffstat:

 tryton/tryton/gui/window/view_form/model/record.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a78eeb912f49 -r 8911683dcc4c 
tryton/tryton/gui/window/view_form/model/record.py
--- a/tryton/tryton/gui/window/view_form/model/record.py        Tue Jun 30 
22:03:11 2026 +0200
+++ b/tryton/tryton/gui/window/view_form/model/record.py        Fri Jul 03 
15:31:25 2026 +0200
@@ -747,7 +747,7 @@
                 'model', self.model_name, 'on_scan_code', values, code,
                 context=self.get_context(), process_exception=False)
         except RPCException:
-            changes = []
+            return False
         self.set_on_change(changes)
         self.set_modified()
         return bool(changes)

Reply via email to