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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
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.
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
1
5月 24
|
1353 | ||
|
1
2月 17
|
5157 | ||
|
1
3月 15
|
15569 | ||
|
4
11月 24
|
11979 | ||
|
0
8月 20
|
2568 |