Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4327 Представления

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.

Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мая 24
1931
1
февр. 17
5645
1
мар. 15
16116
4
нояб. 24
13821
0
авг. 20
2986