GUI of menuitem


menu_ui.png

Menu item in xml


menuitem.jpg

Attributes definition


Attributes
Descripton
id
The unique id of menuitem (must have)
name
This is the caption of the menuitem (must have)
action
Action id name
parent
Parent menuitem
icon
Name of the image that will display on the menuitem. Name of the image need to be added in _ _openerp_ _.py
groups
specifies which group of user can see the menu item (example : groups="admin"). See section " Management of Access Rights" for more information. Multiple groups should be separated by a ',' (example: groups="admin,user")
sequence
is an integer that is used to sort the menu item in the menu. The higher the sequence number, the downer the menu item. This argument is not mandatory: if sequence is not specified, the menu item gets a default sequence number of 10. Menu items with the same sequence numbers are sorted by order of creation (_order = "sequence,id").


References


  1. https://doc.openerp.com/6.0/developer/2_7_menu_action/7_1_menus/

Tips



  1. menuitem will be apeared on the page when:
    • It has action=<action_id> OR
    • It has child menuitems that include actions