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

I use : odoo 12 , pycharm,

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

Thanks

Awatar
Odrzuć

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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"





Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thanks !


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 20
6367
1
kwi 23
3612
3
sty 24
32161
4
sty 24
7259
1
mar 15
7058