details: https://code.tryton.org/tryton/commit/c825df1c785d
branch: default
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
diffstat:
tryton/tryton/gui/window/view_form/model/record.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 52faa4f70a47 -r c825df1c785d
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)