Skip to content
Snippets Groups Projects
Commit c058562d authored by Prakash Prajapati's avatar Prakash Prajapati Committed by Yannick Tivisse
Browse files

[IMP] various: Add multi company domains on views


When the many2xxx field relates to a model where company_id is required, set
this  domain [('company_id','=',company_id.id)]

When the company_id field of the related model is not required, set this domain
['|',('company_id','=',company_id.id),('company_id','=',False)]

When setting the domain on a field which is in the treeview of a xxx2many field
evaluate against the company_id of the 'parent'.

Some constraints have been added on sereval models. Take a look at the complete
specification for more details.

TaskID: 2024446
Closes: #35266

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 25714692
No related branches found
No related tags found
Loading
Showing
with 64 additions and 44 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment