i want to archive this rule "res.partner.rule.parivate.employee"(['|', ('type', '!=', 'private'), ('type', '=', False)])to make sure users can see his own customers by other rules; but after i archived this rule, the system raised AccessError "enter image description here" when i create customer and open Personal center by normal user(no admin). i tried to rewrite this rule and debug this rule, but i can't see what raise out; i have no idea for this question; There's something missing here but I don't know what. Any suggestion? Thank you
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
This question has been flagged
Hi,
This rule has to be archived carefully as it is standard rule defined by Odoo on internal users group.
I would suggest, instead of archiving it, just change the group from internal users to admin settings group. This way, your admin level access remains intact.
Next step, create record rules for users with access restrictions on res. Partner as per your requirement and assign it to respective groups (create new groups). This way the users will have access to res. Partner model and they'll be able to log in without any access related errors.
One thing to remember here is that the user who tries to login, must have access to his own contact in res. Partner. You need to define record rule keeping this in mind. Hope this helps.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up