Skip to Content
Menu
This question has been flagged

Hi,
Noticed an attribute check_company=True , in field definitions in Odoo 13. Does anyone know how it works or what is it purpose.

 

Avatar
Discard
Best Answer

Hi,

When no domain is defined on the field and check_company is set to True, a default domain is added: 

['|', '('company_id', '=', False), ('company_id', '=', company_id)]


You can find more details here: https://www.odoo.com/documentation/13.0/howtos/company.html#odoo.models.Model._check_company

Multi-company consistency

Thanks

Avatar
Discard
Author

Thanks,

and one doubt , If i rewrite this field with a domain like ('company_id', 'in', company_id.child_ids) , can i get the child company records too ?

The parent-child logic has been removed from Odoo 13

Related Posts Replies Views Activity
0
Dec 21
2185
2
Dec 21
4530
1
May 21
3382
0
Oct 24
661
2
Dec 23
8369