From f0f33749ee6d184f00657e4a47c982921d9d1d23 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Fri, 3 Jul 2026 15:31:25 +0200 Subject: [PATCH] Return False when scanning code fails instead of using an invalid empty list Closes #14923 (grafted from c825df1c785d0cfa15be7c1748716f8dd1a6149d) --HG-- branch : 8.0 --- tryton/tryton/gui/window/view_form/model/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/tryton/gui/window/view_form/model/record.py b/tryton/tryton/gui/window/view_form/model/record.py index 665bb1e4f7..4b29539e66 100644 --- a/tryton/tryton/gui/window/view_form/model/record.py +++ b/tryton/tryton/gui/window/view_form/model/record.py @@ -747,7 +747,7 @@ class Record: '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)