Error when I try to create sub menu in sale menu openerp 7 -


i'm try create sub menu in sale menu in custom module, after product link, doesn't appear..

in module, after install it, see name of menu in "created menu".

i try code in view:

<?xml version="1.0" encoding="utf-8"?>     <openerp>         <data>             <menuitem name="gamme" id="menu_gamme" parent="base.menu_product"/>         </data>     </openerp> 

or code :

    <?xml version="1.0" encoding="utf-8"?>     <openerp>         <data>             <menuitem name="gamme" id="menu_gamme" parent="base.menu_product"/>              <record model="ir.actions.act_window" id="action_gamme">                <field name="name">gamme</field>                <field name="model">gamme</field>                <field name="view_type">tree</field>                <field name="view_mode">tree,form</field>             </record>         </data>     </openerp> 

but latest have error :

    valueerror: no such external id defined in system: ailailail.action_gamme 

try these changes code . need have action value in menu tag takes id of ir.actiona.act_windows record. automatically take name "gamme" field name mentioned in record, dont need specify it

 <?xml version="1.0" encoding="utf-8"?>     <openerp>         <data>             <record model="ir.actions.act_window" id="action_gamme">                <field name="name">gamme</field>                <field name="model">gamme</field>                <field name="view_type">tree</field>                <field name="view_mode">tree,form</field>             </record>             <menuitem action="action_gamme" id="menu_gamme" parent="base.menu_product"/>         </data>     </openerp>   

hope helps....


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -