Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4310 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 24
1918
1
lut 17
5636
1
mar 15
16108
4
lis 24
13760
0
sie 20
2961