Set mfields in model before display widgets

This commit is contained in:
Cédric Krier committed 2008-07-29 13:21:19 +02:00
1 parent a696bbb794
commit f8bb1a4215
1 file changed
+4
+4
View File
@@ -186,6 +186,10 @@ class ViewForm(ParserView):
def display(self):
model = self.screen.current_model
if model:
# Force to set mfields in model
for field in model.mgroup.fields:
model[field].get(model, check_load=False)
for widget in self.widgets.values():
widget.display(model)
for button in self.buttons: