You can add button like this in you XML file.
<button name="action_from view" string="Open View" type="object"/>
You need to define your view here
In Your py
def action_from view(self, cr, uid, ids, context=None):
'res_model': 'mail.compose.message' # name of respective model,
'views': [(compose_form_id, 'form')], # view id and type
'view_id': compose_form_id, # view id
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/9/16, 11:14 AM|
|Seen: 499 times|
|Last updated: 2/9/16, 1:37 PM|