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

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
0
Nov 24
162
2
Oct 24
2421
1
May 24
356
1
Oct 23
1153
0
Oct 22
660