Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2561 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Nov 24
1473
2
Okt 24
3854
1
Mei 24
1329
1
Okt 23
2120
0
Okt 22
1357