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:
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
abr 24
|
4293 | ||
|
1
ago 25
|
1801 | ||
|
2
ago 25
|
414 | ||
naked domain set up
Resuelto
|
|
3
jul 25
|
4542 | |
|
0
may 25
|
983 |