changeset 7703fdfb1358 in tryton:6.4
details: https://hg.tryton.org/tryton?cmd=changeset&node=7703fdfb1358
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 961bf6a892d3 -r 7703fdfb1358 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'):