changeset 3b2eaa2cec5b in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=3b2eaa2cec5b
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 1e4d309ecf42 -r 3b2eaa2cec5b tryton/gui/window/view_form/model/record.py
--- a/tryton/gui/window/view_form/model/record.py Sun Jul 24 23:36:40
2022 +0200
+++ b/tryton/gui/window/view_form/model/record.py Sat Aug 06 10:35:11
2022 +0200
@@ -380,7 +380,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'):