Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2558 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
nov. 24
1469
2
okt. 24
3852
1
maj 24
1323
1
okt. 23
2118
0
okt. 22
1356