Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I've created a new module named event_extended, which depends on the module named event. In my module, I've created a class ee.diploma. I created a new menu option to access to the views of this projects:
As you can see, I've set some groups to the menuitem: I copied them from other existing menuitem which was set on the event module code. I did this because I want my menu option to bevahe like that menuitem.
As I want to use the same user groups as the ones declared in the module event, I didn't create any XML file in the security folder. I've only created a CSV file (which I've included in the array data of __openerp__.py). This is my CSV:
id, name, model_id:id, group_id:id, perm_read, perm_write, perm_create, perm_unlink
access_ee_diploma, ee.diploma, model_ee_diploma, event.group_event_user, 1, 1, 1, 1
The problem is: I can't see the menu option if I'm logged as a normal user (it doesn't mind if my user belongs to event.group_event_manager or event.group_event_user).
Can anyone help me, please? I've seen several questions which ask the same as I do, and I've tried their answers with no result. There must be something I'm missing.
The rows I write in my CSV are being ignored. I have the next structure in my module
And my __openerp__.py is:
"name": "Extended Events",
"author": "Juan Formoso <firstname.lastname@example.org>",
I would do @Ludo's advice to remove the parent tag first. That will inherently test whether your access rules and menu item access are in order. If you can't see the menu without parent, then you need to check the access rules, etc. If it appears, check on the groups of all the parent menus, starting from base.menu_event_main. The user need to have access to all parent menus (if there is no group, then it is accessible to all users).
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/29/14, 7:12 AM|
|Seen: 1688 times|
|Last updated: 3/16/15, 8:10 AM|