From ed7285d6a0830283bdeaaa33279d4fa234025d9b 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 --- 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 36abd46c47..9bbe5427e5 100644 --- a/tryton/tryton/gui/window/view_form/model/field.py +++ b/tryton/tryton/gui/window/view_form/model/field.py @@ -900,7 +900,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)