El 28/06/18 a les 14:15, Carlos Gálvez ha escrit: > Hi all, Hi Carlos, > > I would like to know if is possible to open another view when a button > placed in a form view is clicked. > > For example: > I'm in a form view of a model named 'foo' and through a button click i > want to create an instance of another model named 'bar' and show the > form view of this instance. > > Would it be possible??
Yes, it is possible. You should use the button_action decorator to returns an wizard with an StateAction from the model of the new created instance. You should set the res_id of the action on the wizard to the ids of the new created instances. -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/2b2dab86-a098-83b9-f5f4-a08a4bd510db%40koolpi.com.