Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to add menu item to own module [Closed]

By
priyankahdp
on 3/16/13, 2:20 PM 1,721 views

The Question has been closed

by
priyankahdp
on 04/20/2013 03:22:27

when i need to add 'supplier menu item' to my own module, i need to copy and paste below tag & add hr & base models in depends section of __openerp__.py file .? is it enough.? any other modification need to do.?

<menuitem id="base.menu_procurement_management_supplier_name" name="Suppliers"
    parent="menu_procurement_management"
    action="base.action_partner_supplier_form" sequence="15"/>
2

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--
4136
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 3/16/13, 5:18 PM

Hi,

to add a submenu to an existant menu from an other module, you must do this :

<menuitem id="name_you_want_but_which_not_exist_yet" name="Suppliers"
    parent="name_of_module_of_parent_menu.id_parent_menu_"
    action="id_action_you_defineinxml_of_your_module" sequence="15"/>

Bye

thanks GEM, if action also same.then we can call same action name.?

priyankahdp
on 3/16/13, 10:45 PM

Hi, why not to test by yourself ? This is a second question ;) .in fact if the action you need is the same, yes you can, but in parameter action, you must declare the name of module where the action is, do like in parent parameter I describe in my answer, action="name_of_module_where_action_id_is.action_id" . Bye

Cyril Gaspard (GEM)
on 3/16/13, 11:14 PM

thanks GEM.I asked again, because one time i reuse 'supplier menuitem' to my module.but when i checking in purchase module supplier module moved from there..seems something missing in my module. I'll check

priyankahdp
on 3/17/13, 12:00 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/16/13, 2:20 PM
Seen: 1721 times
Last updated: 3/16/15, 8:10 AM