diff --git a/tryton/tryton/gui/window/view_form/model/record.py b/tryton/tryton/gui/window/view_form/model/record.py index 5a7e3b2139..870bead16f 100644 --- a/tryton/tryton/gui/window/view_form/model/record.py +++ b/tryton/tryton/gui/window/view_form/model/record.py @@ -654,7 +654,7 @@ class Record: try: if len(later) == 1 or 'id' not in values: changed = {} - for fieldname in fieldnames: + for fieldname in later: changed.update(RPCExecute( 'model', self.model_name, 'on_change_with_' + fieldname,