From b16a45f79f9fa0f2b77c8fef3725ddf1d8895a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 12 May 2025 12:36:10 +0200 Subject: [PATCH] Iterate on the result of items call to update values set by on_change on O2M e38f2298 introduces wrongly the iteration over the function instead of the result. Closes #14014 (grafted from fadb43303291d5641f5e30169126e595aaa83ad5) --HG-- branch : 6.0 --- tryton/tryton/gui/window/view_form/model/field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/tryton/gui/window/view_form/model/field.py b/tryton/tryton/gui/window/view_form/model/field.py index 8fab0561d3..5e31e1031c 100644 --- a/tryton/tryton/gui/window/view_form/model/field.py +++ b/tryton/tryton/gui/window/view_form/model/field.py @@ -827,7 +827,7 @@ class O2MField(Field): record2 = group.get(vals['id']) if record2 is not None: to_set = { - k: v for k, v in vals.items + k: v for k, v in vals.items() if k not in vals_to_set} record2.set_on_change(to_set)