I am creating a button in the model sale.order that pressing the button will now have the stock.picking.form . This is my my sale_view.xml file
<record model="ir.actions.act_window" id="vista_stock_picking"> <field name="name">Vista stock picking</field> <field name="type">ir.actions.act_window</field> <field name="res_model">stock.picking</field> <field name="view_type">form</field> <field name="view_id" ref="stock.view_picking_form"/> <field name="target">new</field> </record>
And in Form view sale.order model , I created the button:
<button name="%(vista_stock_picking)d" string="Vista stock picking" type="action"/>
I checked the documentation Odoo but I had no clear information .
If someone could help me I would be very grateful.
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: 3/7/16, 9:36 AM|
|Seen: 189 times|
|Last updated: 3/7/16, 10:22 AM|