[IMP] web: list: allow to add decorations on field nodes
In list views, one can specify decoration-XXX attributes on the arch root node. Those decorations are evaluated for each record, and the corresponding style is applied on rows for which the condition is true. This commit allows to specify those decoration-XXX attributes on field nodes as well. In this case, when the condition is met by a record, only the field on which the attribute is set will be impacted. Part of task 2195254
Showing
- addons/web/static/src/js/views/list/list_editable_renderer.js 1 addition, 1 deletion...ns/web/static/src/js/views/list/list_editable_renderer.js
- addons/web/static/src/js/views/list/list_renderer.js 42 additions, 20 deletionsaddons/web/static/src/js/views/list/list_renderer.js
- addons/web/static/tests/views/list_tests.js 21 additions, 0 deletionsaddons/web/static/tests/views/list_tests.js
- doc/reference/views.rst 7 additions, 0 deletionsdoc/reference/views.rst
- odoo/addons/base/rng/common.rng 8 additions, 0 deletionsodoo/addons/base/rng/common.rng
Loading
Please register or sign in to comment