This question has been flagged

Hello,
on a one2many widget in a parent form I can specify the view that will be opened setting the "form_view_ref" and "tree_view_ref" variables in the context. Is it possible to use different forms depending on the parent form mode? For example if the parent form is in edit mode I would like to open a special edit-form cliking on "add an item". If the parent is only viewing data, not in edit mode, then clicking on an entry on the one2many widget should open another form view of the child element. Thank you for any suggestions.
nero  

Avatar
Discard