I need to assign the the menu's based on user groups ,how can i achieve this??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
HI,
<menuitem action="ACTION_ID" id="NEW_MENU_ID" parent="PARENT_MENU_ID" groups="module_name.GROUP_XML_ID"/>
Bye.
You also need to add your module to the group
Example my module uses Inventory / Manager - <menuitem> calls up groups="stock.group_stock_manager"
So in Settings>User>Groups I searched for "Inventory" and selected "Inventory / Manager"
Click on "Access Rights" click "edit" and then "Add an Item"
Add your module and give it a name.
Do you want to assign groups to menu ? If it is, you need to use 'groups' attribute like this:
<menuitem action="ACTION_ID" id="NEW_MENU_ID"
parent="PARENT_MENU_ID" groups="GROUP_XML_ID"/>
After making this change in xml file, Update your module and check it.
Thanks, Priyesh Solanki
Thanks for your reply, i have followed the same way and its not working
Did you update your module with -u MODULE_NAME -d DB_NAME while restarting OpenERP server ?
Ya i have updated but still not working
Did you add that xml file in __openerp__.py ? Can you check from here: Settings --> Technical --> User Interface --> Menu Items and Search for you menu and open it. In Groups tab, can you that group is coming there that you set in groups attribute ?
for that menu item i am not able to see group , where exactly i am going wrong?
It looks like your view is not going to be update, I am assuming that everything is correctly done. Though can you try it in new database ?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 5 24
|
2157 | ||
|
3
thg 4 23
|
11635 | ||
|
1
thg 4 23
|
14649 | ||
|
1
thg 5 20
|
6376 | ||
|
1
thg 5 19
|
2891 |