I have seen both used in the code, and I am wondering what the difference is.
This is what I see in the documentation:
https://www.odoo.com/documentation/17.0/developer/reference/backend/orm.html
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have seen both used in the code, and I am wondering what the difference is.
This is what I see in the documentation:
https://www.odoo.com/documentation/17.0/developer/reference/backend/orm.html
self.filtered(func) | self.filtered_domain(domain) |
|
|
Use self.filtered_domain wherever possible for performance reasons and use self.filtered for cases where you can't leverage the Odoo domain syntax.
Use self.filtered when:
Use self.filtered_domain when:
Create an account today to enjoy exclusive features and engage with our awesome community!
Tilmeld digRelated Posts | Besvarelser | Visninger | Aktivitet | |
---|---|---|---|---|
|
2
apr. 24
|
4295 | ||
|
1
aug. 25
|
1801 | ||
|
2
aug. 25
|
414 | ||
naked domain set up
Løst
|
|
3
jul. 25
|
4542 | |
|
0
maj 25
|
983 |