diff --git a/tryton/gui/window/view_form/view/form.py b/tryton/gui/window/view_form/view/form.py index 7ce7bd2cd9..0b4a733fb2 100644 --- a/tryton/gui/window/view_form/view/form.py +++ b/tryton/gui/window/view_form/view/form.py @@ -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: