Community mailing list archives

community@mail.odoo.com

Re: Record Rules Help - V7

by
Excedo Technology & Solutions Pvt Ltd, Narayana Moturi
- 12/12/2015 20:33:23
Hi Ray - The record rule is correct, we have assigned a parent sales id field to its child records as well, which has solved the issue.

Naran

On Sun, Dec 13, 2015 at 2:43 AM, Ray Carnes <ray.carnes@bistasolutions.com> wrote:
Oh I see. So what is the proper record rule?

Ray.

Ray Carnes
Senior Odoo Consultant | 909.864.4576 | Skype: bista_ray
Time zone: US Pacific | Office: Greater Los Angeles
Bista Solutions, Inc.  | Empowering Business Success

From: Naran M
Sent: ‎12/‎12/‎2015 2:08 AM
To: Community
Subject: Re: Record Rules Help - V7

Thank's Ray. We had similar record rule, the issue was with permission:read error when trying to open a record in form view. We have figured out why it comes up with this error when tried to open.Since we are having filter to restrict based on the user id at the parent level, any child records (contacts) will be restricted to load.

-Naran

On Sat, Dec 12, 2015 at 4:02 AM, Ray Carnes <ray.carnes@bistasolutions.com> wrote:

This worked for me in v9:

 

['|', ( 'user_id' , '=' , False ) , ( 'user_id' , '=' , [user.id] ) ]

 

<img width=321 height=311 id="Picture_x0020_1" src="cid:image001.png@01D133F2.6A7093C0">

 

 

 

From: Naran M [mailto:nmoturi@ru3ix.com.au]
Sent: Tuesday, December 8, 2015 2:21 PM
To: Community <community@mail.odoo.com>
Subject: Record Rules Help - V7

 

Hello Community,


I am looking for a small technical assistance to get around this record rule issue, I was trying to filter the Customers based existing sales group "see own leads" . This should show only partners which were assigned to them.

 

We created a record rule on res.partner object with (create, write, read, delete) rights, following domain and give a Sales / User: Own Leads Only group to the record rule

['|',('user_id','=',False),('user_id','=',user.id)]




When I try to open a partner in form view, I end up with below error

Access Denied The requested operation cannot be completed due to security restrictions. Please contact your system administrator. (Document type: Partner, Operation: read)


​ 

Any suggestions please..?

 

Thanks,

Naran

 

 

 


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe