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.
My question is simple, yet i don't know the answer!!.
I want to create 4 generic groups and assign users to it.
Group Name - Group Description
- Own Contacts - Users assigned to this group will only be able to see their own contacts
- Team Contacts - Users assigned to this group will be able to see their own contacts and their group(sub-department) contacts
- Department Contacts - Users assigned to this group will be able to see their own contacts and their department contacts
- All Contacts - Users assigned to this group will be able to see all the system contacts
I have created 3 departments in hr module each with a manager
Department - Manager
- Sales - Leo
- Sales Team 1 - James
- Sales Team 2 - Edward Every one has got a related user login and will be able to login to the system.
Now i would like to do implement the following logics in openerp for my groups
Own Contacts - create_uid = context.get('uid') - Works Fine
Team Contacts - create_uid.employee_id.dpt_id = context.get('uid').employee_id.dpt_id - need something like this
Department Contacts - create_uid.employee_id.dpt_id is a sub-department of context.get('uid').employee_id.dpt_id - need something like this
All Contacts - 1=1 - should work fine.
Thanks a lot if you can help me with this issue. Thanks.
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: 4/26/13, 4:03 PM|
|Seen: 1266 times|
|Last updated: 3/16/15, 8:10 AM|