Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2847 Lượt xem
This is my code:
<record id="module_category_vender_user" model="ir.module.category">
<field name="name">Vender</field>
</record>

<record id="group_vender" model="res.groups">
<field name="name">Vender</field>
<field name="category_id" ref="website_groceries_extended.module_category_vender_user"/>
</record>

When we apply this group to internal user then we want only order menu in purchase and all other's are hide.
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Dharmesh,


You need to add your custom group in the menu which you want to display and for you need to override the odoo menu item for that please follow the below code: 


<record model="ir.ui.menu" id="module_id.menu_id">

  <field name="groups_id" eval="[(6,0,[ref('group_vender')])]"/>

</record>


Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
2660
1
thg 10 22
2359
Get menuitem list Đã xử lý
3
thg 12 21
7243
0
thg 12 18
2586
7
thg 10 18
22391