Odoo Help

0
1 Answer
1
Meaningless Life
11/30/18, 2:14 AM

Didn't get why you added 2 act windows.

For your purpose, ie to confirm together multiple sale records, the action button should only appear only in the tree view, and not in the form view.

So after you defined the view (id="view_confirm_sale_order")
you'll need to define just one act window

something like

<act_window id="action_confirm_multiple_orders"
            name="Confirm Multiple orders"
            key2="client_action_multi"
            view_mode="form"
            multi="True"
            target="new"
            src_model="sale.order"
            res_model="sale.order.confirm.wizard"
        />


Instead of 2 act windows.

Please accept and Upvote, if useful.

1 Comment
Daniele Morelli
11/30/18, 5:50 AM

Thank you for your kind answer... I must admit that i based my code on stuff i found online. Probably the original author was interested in making the menu voice appear in both kind of views...

Cheers

Ask a Question
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now