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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účtovníctvo
- Sklady
- PoS
- Project
- MRP
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
1
máj 24
|
1344 | ||
|
1
feb 17
|
5150 | ||
|
1
mar 15
|
15547 | ||
|
4
nov 24
|
11977 | ||
|
0
aug 20
|
2566 |