odoo/odoo#204293
Created by Framework (ORM), Krzysztof Magusiak (krma)
Merged
at b7002b662ed82cbd3424dc8968961d85a8763539
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Overridden by @rco-odoo
- label
- odoo-dev:master-domain-filtered-krma
- head
- abfe4b113a4ce36e59eab2a5e53c8b09e8050f57
- merged
- 4 months ago by Framework (ORM), Raphael Collet
| odoo/odoo | |
|---|---|
| master | #204293 |
[IMP] orm: Model.filtered(Domain)
Description of the issue/feature this PR addresses:
Rewrite BaseModel.filtered_domain and BaseModel.filtered by delegating the implementation to the Domain class.
To ease the implementation, we introduce methods on fields: to transforms a field expression into a function, and one that implements the filtering function (similar to what field_to_sql does).
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr