跳至內容
選單
此問題已被標幟
1 回覆
2557 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
11月 24
1469
2
10月 24
3852
1
5月 24
1323
1
10月 23
2118
0
10月 22
1356