Hi,
Noticed an attribute check_company=True , in field definitions in Odoo 13. Does anyone know how it works or what is it purpose.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
Noticed an attribute check_company=True , in field definitions in Odoo 13. Does anyone know how it works or what is it purpose.
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
Thanks
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Dec 21
|
2185 | ||
|
2
Dec 21
|
4530 | ||
|
1
May 21
|
3382 | ||
|
0
Oct 24
|
661 | ||
|
2
Dec 23
|
8369 |