Skip to Content
Menu
This question has been flagged
1 Reply
3168 Views

I added a new module 'stagiaires'

and I added to this module a user group:

<odoo>

  <record id="stage_group_gestionnaire" model="res.groups">

            <field name="name">Gestionnaire stagiaire</field>

        </record>


<record model="ir.ui.menu" id="stagiaires.main_stagiaire_menu">

<field name="groups_id" eval="[(4, ref('stagiaires.stage_group_gestionnaire'))]"/>

</record>


</odoo>


and I added a menuitem:

  <menuitem

id="main_stagiaire_menu"

            name="Stagiaires"  " />

  <menuitem id="stagiaire_menu" name="Stagiaires"

                  parent="main_stagiaire_menu"/>

       <menuitem id="courses_menu" name="Stagiaires" parent="stagiaire_menu"

                  action="stagiaires_list_action"/>

when I add the administrator to this menuitem its appear so when I add a user in this  menuitem it does not appear

What is the problem ??


Avatar
Discard
Best Answer

Add groups for menus. eg:

with attribute groups=""

Avatar
Discard