changeset fd0f35037e45 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=fd0f35037e45
description:
        Iterate over copy of fields items in record validate

        The validation of the fields may trigger to fetch the definition of new 
fields.

        issue11612
        review417601003
diffstat:

 tryton/gui/window/view_form/model/record.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e0d0a14b82ed -r fd0f35037e45 tryton/gui/window/view_form/model/record.py
--- a/tryton/gui/window/view_form/model/record.py       Sat Aug 06 10:33:49 
2022 +0200
+++ b/tryton/gui/window/view_form/model/record.py       Sat Aug 06 10:35:11 
2022 +0200
@@ -397,7 +397,7 @@
         elif fields is None:
             self._check_load()
         res = True
-        for field_name, field in self.group.fields.items():
+        for field_name, field in list(self.group.fields.items()):
             if fields is not None and field_name not in fields:
                 continue
             if field.attrs.get('readonly'):

Reply via email to