콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4182 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
1
5월 24
1773
1
2월 17
5504
1
3월 15
15979
4
11월 24
13242
0
8월 20
2845