How to change action window for menuitem?

前端 未结 2 484
一整个雨季
一整个雨季 2021-01-22 19:13

In odoo, I want to change the action window of default menuitem. As I can not do changes in default module, I have created other menuitem but it is showing both default and new

相关标签:
2条回答
  • 2021-01-22 19:17

    Hide original menuitem and create new one with same sequence and parent.

    Easy as eating ice-cream ;)

    0 讨论(0)
  • 2021-01-22 19:26

    Here is the answer to inherit the menuitem..

    <record model="ir.ui.menu" id="module_name.original_menu">
        <field name="action" ref="new_action_id"/>
    </record>
    
    0 讨论(0)
提交回复
热议问题