Search code examples
modulemenumenuitemodooodoo-11

How can I add more than 1 group in menuitem in Odoo 11


I have a custom module with one tree view and one form view. The menuitem is this:

<menuitem name="Padres/Tutores" id="progenitor_tutor" groups="grupo_maestros" sequence="10" action="progenitor_tutor_action"/>

As you can see, only the group "grupo_maestros" can see the menu. The question is: How can I add more than one group to groups in menuitem to allow the visualization of this menu?


Solution

  • You can add more than one group to groups by comma separating them, for example:

    <menuitem name="Padres/Tutores" id="progenitor_tutor"
        groups="grupo_maestros,module.your_group_name"
        sequence="10" action="progenitor_tutor_action"/>