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!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Apr 24
|
4257 | ||
|
1
Aug 25
|
1776 | ||
|
2
Aug 25
|
372 | ||
naked domain set up
Solved
|
|
3
Jul 25
|
4492 | |
|
0
May 25
|
957 |