Conversation
022dffe to
25fc8fe
Compare
Minimal `Domain` shim (delegates to odoo.osv.expression) plus the typed `ir.config_parameter` getters get_str/get_int/get_float/get_bool. Purpose: cut the effort of backporting 19/20 modules to 18.0 by keeping their call sites 1-1 with upstream instead of rewriting them.
25fc8fe to
61abc07
Compare
|
interesting ! |
|
@legalsylvain Don't hesitate to leave a review ! 😄 |
|
Review needed @OCA/server-tools-maintainers Possible review |
| - ``Domain.TRUE`` / ``Domain.FALSE`` | ||
| - ``.optimize_full(model)`` -> validates against the model, returns self | ||
|
|
||
| NOT supported (keep such call sites hand-adapted on 18): |
There was a problem hiding this comment.
which kind of impact has such limitation?
There was a problem hiding this comment.
I personnally didn't need them.
any! isn't popular yet, and -1d is usually done with date/datetime and timedelta.
| @@ -0,0 +1,34 @@ | |||
| # Copyright 2026 Camptocamp SA | |||
There was a problem hiding this comment.
There was a problem hiding this comment.
This is not copied from Odoo's code.
Here is how Odoo does it: odoo/odoo@22fa8e6
The code here only fill the gap by mimicking V20 interface.
too complex for me ! |
Minimal
Domainshim (delegates to odoo.osv.expression) plus the typedir.config_parametergetters get_str/get_int/get_float/get_bool.Purpose: cut the effort of backporting 19/20 modules to 18.0 by keeping their call sites 1-1 with upstream instead of rewriting them.