-
- Downloads
[FIX] analytic: allow filtering based on analytic distribution
Currently, the field `analytic_distribution` does not appear in
the filters, while it should (to be able to filter `account_move_line`
for example).
We added Json to the filterable fields. If not overriden, it will
search on it like a String.
We also have to add a non-stored field to be able to define a search
function for `analytic_distribution`, to be able to search based
on the keys of the json.
closes odoo/odoo#116496
Signed-off-by:
William André (wan) <wan@odoo.com>
Showing
- addons/analytic/i18n/analytic.pot 13 additions, 0 deletionsaddons/analytic/i18n/analytic.pot
- addons/analytic/models/analytic_mixin.py 35 additions, 1 deletionaddons/analytic/models/analytic_mixin.py
- addons/web/static/src/search/filter_menu/custom_filter_item.js 9 additions, 0 deletions...s/web/static/src/search/filter_menu/custom_filter_item.js
- addons/web/static/tests/search/custom_filter_item_tests.js 58 additions, 0 deletionsaddons/web/static/tests/search/custom_filter_item_tests.js
Please register or sign in to comment