Live Chat
True
FAQs
Development

Split Customer according to company, odoo 14.0

I want to split customers according to company I mean user can see only customers if customers are in user's company, I wrote Record Rule but there is error.

Due to security restrictions, you are not allowed to access 'Contact' (res.partner) records.

Records: branch1_user (id=8)

User: branch1_user (id=6)

This restriction is due to the following rules:

- Customers only own

Note: this might be a multi-company issue.

Contact your administrator to request access if necessary.

Domain filter in Model Record Rules:

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


In Customers we should select company in customer detail page( Sales & Purchase tab ->Company)

then we should write rule for this, rule :

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


Was this article helpful?

FAQ HOME

To install this Web App in your iPhone/iPad press and then Add to Home Screen.