Odoo Help

Welcome!

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.

0

How can i add a button above tree view of type view?

By
samba
on 8/12/14, 9:14 AM 948 views

I have a view "inventory_stock_report" it is showing the result in "tree" view. I want to add a button type object above the tree view and want to execute a function.

0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 8/13/14, 6:35 AM

Hello Samba,

You have to add a custom web code for the individual button same as 'Create' in 'tree' view.

The altenate is that you can add a button(wizard) to 'More' menu and from that you can pop-up a window(wizrad) and add a button type object over there and can get the 'active_ids' through 'context' in your method.

To add a button(wizard) in 'More' option, you have to create "act_window" of your wizard like this:

https://github.com/odoo/odoo/blob/master/addons/stock/wizard/stock_return_picking_view.xml#L4

Thanks.

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)

Stats

Asked: 8/12/14, 9:14 AM
Seen: 948 times
Last updated: 3/16/15, 8:10 AM