diff --git a/tryton/tryton/gui/window/view_form/model/record.py b/tryton/tryton/gui/window/view_form/model/record.py index 826f13dbb0..d23215c51e 100644 --- a/tryton/tryton/gui/window/view_form/model/record.py +++ b/tryton/tryton/gui/window/view_form/model/record.py @@ -653,7 +653,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,