Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Why did not open the view of a button type ir.actions.act_window?

James Ford
on 3/7/16, 9:36 AM 177 views

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>

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.


Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/7/16, 9:36 AM
Seen: 177 times
Last updated: 3/7/16, 10:22 AM