Call set_state on buttons in set_value

This commit is contained in:
Cédric Krier committed 2012-09-03 18:02:33 +02:00
1 parent ac05a2d356
commit 6e69f40158
1 file changed
+4
+4
View File
@@ -84,6 +84,10 @@ class ViewForm(ParserView):
field = record.group.fields[name]
for widget in widgets:
widget.set_value(record, field)
# The states of group must be restored as some widgets could call
# display in set_value
for button in self.buttons:
button.state_set(record)
def sel_ids_get(self):
if self.screen.current_record: