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)