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!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Nis 24
|
4279 | ||
|
1
Ağu 25
|
1800 | ||
|
2
Ağu 25
|
411 | ||
naked domain set up
Çözüldü
|
|
3
Tem 25
|
4535 | |
|
0
May 25
|
983 |