Daniel Ruiz
Daniel Ruiz

Reputation: 351

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?

Upvotes: 1

Views: 2345

Answers (1)

Geet Pujara
Geet Pujara

Reputation: 54

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"/>

Upvotes: 3

Related Questions