summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2018-12-11 15:30:51 +0000
committerAurélien Warnon <awa@odoo.com>2018-12-19 09:10:34 +0000
commite3246845c398eb052e578d38431a2a783cbc0a17 (patch)
tree9529202c9fdf857e341e864ff9b6cb2d41cadc86 /addons/web/static/tests/fields/basic_fields_tests.js
parent06c05983e3f442cee0fcef75c2d618b8b2089f8c (diff)
[FIX] web: fix KanbanRenderer state management for date/datetime fields
In the KanbanRenderer, the _setState method extracts the groupBy field name and tries to get the field information from that string. When the field is a date/datetime grouped by day/week/month/..., the field name becomes "my_date:month". This prevents the gathering of state information since those information are stored in a dictionary with a 'my_date' key. This commit will detect if the field has additional grouping info (:month, :week, ...) and clean the name with a substring before accessing the state dictionary.
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions