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

I use : odoo 12 , pycharm,

i want to know how i can call the action of the module product into my menu item?

Thanks

아바타
취소

Action Menu in Odoo: https://goo.gl/UnHzS8

베스트 답변

Hi,

Suppose if you need to call the action of the product menu in your module, what you have to do is that, take the external ID of the corresponding action and specify it in your new menu.

<menuitem id="menu_product_template_form"
parent="id_of_your_parent"
action="product.product_template_action"
sequence="30"/>

This is a new menu in custom module, that calls the product_template_action in product module.

Thanks

아바타
취소
베스트 답변

You need to pass action ='Main_Module_name.external_id' in your menu item 

Example: action="product.product_action_ID"

in your button name="%(Main_Module_name.external_id)d"

name="product.product_action_ID" type="action"
or
name="product.product_method_name" type="object"





아바타
취소
작성자 베스트 답변

Thanks !


아바타
취소
관련 게시물 답글 화면 활동
2
5월 20
6625
1
4월 23
3920
Odoo Installation 해결 완료
3
1월 24
32587
Certificate Error 해결 완료
4
1월 24
7518
1
3월 15
7273