-
- Downloads
[FIX] web: BasicModel: correctly eval x2manys in domains
When x2many fields have to be evaluated in domains (e.g. ['id', 'in', some_x2many_field]), they must be evaluated as the list of ids in the relation (whereas in contexts, they are evaluated as a list of commands). Before this rev., they were always evaluated as a list of commands. Note that this didn't work neither before the new views.
Showing
- addons/web/static/src/js/views/basic/basic_model.js 16 additions, 8 deletionsaddons/web/static/src/js/views/basic/basic_model.js
- addons/web/static/tests/fields/relational_fields_tests.js 15 additions, 3 deletionsaddons/web/static/tests/fields/relational_fields_tests.js
- addons/web/static/tests/views/basic_model_tests.js 37 additions, 0 deletionsaddons/web/static/tests/views/basic_model_tests.js
Loading
Please register or sign in to comment