Skip to Content
Menu
This question has been flagged

Hello,

I have a fresh installation of odoo v11 and I have installed the CRM module. I created an user with the User: Own Documents Only group but when I connected with the new user and tried to create a lead I got an access denial.
Error while validating constraint

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: crm.lead, Operation: read)
None

 

Then I checked record rules related to crm.lead model and found there are 2 record rules which cause this error to occur:

1. Leads with assigned activities --> domain_force = [('activity_ids.user_id','=',user.id)]

2. Personal Leads --> domain_force = ['|',('user_id','=',user.id),('user_id','=',False)]

The only shared thing between these rules is user_id in the domain.

I can't get what is wrong here because there is an ACL granting read access to the group User: Own Documents Only

Avatar
Discard
Related Posts Replies Views Activity
2
Jan 24
1159
0
Jan 24
469
0
Dec 20
1045
1
Sep 19
3654
3
Mar 18
6825