Hello everyone, 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)]