-
- Downloads
[FIX] web: properly display boolean fields in kanban
Before this commit, boolean fields (without widget="boolean") in
kanban views were displayed as [Object object], because when no
widget is specified, we display the (textual) formatted value of
the field. However, the boolean formatter returns by default a
string encoding an html checkbox.
This commit passes the correct option to force a string formatting,
so it now displays "True" or "False". Moreover, this commit
uniformizes formatter options for that purpose, as another option
had been recently introduced for monetary field.
Note that those options should not be necessary, as formatters
should always return text values (no html). But this is a larger
change, that we might do in the future.
Task 2280394
closes odoo/odoo#53937
Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
Showing
- addons/web/static/src/js/fields/field_utils.js 4 additions, 4 deletionsaddons/web/static/src/js/fields/field_utils.js
- addons/web/static/src/js/views/kanban/kanban_record.js 1 addition, 1 deletionaddons/web/static/src/js/views/kanban/kanban_record.js
- addons/web/static/tests/views/kanban_tests.js 23 additions, 0 deletionsaddons/web/static/tests/views/kanban_tests.js
Loading
Please register or sign in to comment