Search code examples
configurationsubmenuaccountopenerp-7

How to add a sub menu in Account Configuration Menu on OpenERP


I try to add a new menu in Account Configuration!

Configuration

  • Periods

  • Journals

  • Accounts

  • Taxes

-------> my menu

  • Financial Reports

  • Miscellaneo

So i use >> Parent="base.menu_config" but it's appear in Sale Configuration !!!

This is my code

<menuitem id="withholding_tax_type_menu" 
                            name="Withholding Tax Types"
                            parent="base.menu_config"
                            action="withholding_tax_type_action"/>  
</data>

Some one please help me and thank you for you time to reading my word :'(


Solution

  • try this, Give Proper name as your module related. And you will get this. following is an example.

    #create tree view and form view and below is menu
    
    <record model="ir.actions.act_window" id="action_menu_tax_types">
        <field name="name">Withholding Tax Types</field>
        <field name="res_model">model.name</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>
    
    <menuitem parent="account.next_id_27" id="menu_action_menu_tax_types" action="action_menu_tax_types"/>
    

    You will see the below Taxes Menu like menu name Tax Types and sub menu name Withholding Tax Types.

    Hope this will help you.