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:
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Odoo 15 - "name 'self' is not defined" in xml domain
Diselesaikan
|
|
2
Apr 24
|
4277 | |
|
1
Agu 25
|
1797 | ||
How can I make the cost field on products readonly?
Diselesaikan
|
|
2
Agu 25
|
390 | |
naked domain set up
Diselesaikan
|
|
3
Jul 25
|
4532 | |
|
0
Mei 25
|
982 |