Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2701 Weergaven

I developed a module ->grievance which has three groups 1. admin 2. SPOC person and 3. user , Just i want to hide a "Apply Grievance"menu from Admin and SPOC person but admin has all permission

i have try this but not work-

                

record> 

Here three Groups ->

Userfield>

record>

SPOC Personfield>

record>
Adminfield>

record>

Menu is like this

how to hide Apply grievance menu from Admin & SPOC person


please help me.. with some example and screenshots. please answered any one

Avatar
Annuleer
Beste antwoord

Hi,

Please try like this.

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


    <field name="name">admin</field>


    <field name="category_id" ref="module_category_research"/>


<!--        <field name="implied_ids" eval="[(4, ref('group_scholar_user'))]"/>-->


</record>


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


    <field name="name">SPOC</field>


    <field name="category_id" ref="module_category_research"/>


</record>


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


    <field name="name">User</field>


    <field name="category_id" ref="module_category_research"/>


</record>

Do not add impliese_ids to groups

<menuitem id="grievance_menu_root"


          name="grievance menu"


          parent="research_management_root"


          action="action_report"


          sequence="10"


          groups="your_module_name.group_scholar_user"/>


Regards

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
nov. 24
1660
2
okt. 24
4004
1
mei 24
1476
1
okt. 23
2265
0
okt. 22
1490