changeset 6e1b2c74c367 in tryton:6.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=6e1b2c74c367
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 19e00467f7a9 -r 6e1b2c74c367 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'):