changeset 07ebfb5bb18e in tryton:6.2
details: https://hg.tryton.org/tryton?cmd=changeset&node=07ebfb5bb18e
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
        (grafted from fd0f35037e459393853314fff8702f4656baf931)
diffstat:

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

diffs (12 lines):

diff -r ce96a23b738a -r 07ebfb5bb18e 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
@@ -391,7 +391,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