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:
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
2
4月 24
|
4299 | ||
|
1
8月 25
|
1808 | ||
|
2
8月 25
|
433 | ||
|
3
7月 25
|
4561 | ||
|
0
5月 25
|
991 |