It seems like all of the default multi-company record rules are set up so that a user can only see records from his/her company or child companies. I imported all my data under the top-level company, which has two sub-companies. I would like to set up the record rules such that a user from a sub-company can see records from that company or the main company. So far, I have been unsuccessful. I see that there is a "child_of" operator, but I haven't seen a "parent_of" operator. I have also tried the domain "['|',('company_id','=',user.company_id.parent_id.id),('company_id','=',False)]", but that doesn't work, either. What domain string would allow for the aforementioned access?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
3556
Vistas
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
nov 16
|
3566 | ||
|
0
jul 16
|
3528 | ||
|
0
mar 15
|
3276 | ||
|
2
mar 24
|
1639 | ||
limit access to customer portal
Resuelto
|
|
2
may 17
|
6352 |
Did you find a solution? I'm facing the same problem with ('company_id','=',user.company_id.parent_id.id)