From 4c10d819cb02fdc7e55a439dd6dfed7b4d8003c3 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 (grafted from 4ae6ff275a5ecca94c917876dfefde7c6713a680) --HG-- branch : 7.0 --- 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 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,