From 7a280ff7972d6947dfed89516166a1f87d75fdbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Feb 2024 21:47:12 +0100 Subject: [PATCH] Call on_change_with only for later field names Closes #13016 --- 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 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,