diff options
| author | fw-bot <otis@odoo.com> | 2019-11-22 13:18:35 +0000 |
|---|---|---|
| committer | jvm-odoo <jvm@odoo.com> | 2019-11-25 08:07:43 +0000 |
| commit | 40e8834b00d07f62f25b427214c0c71bd37d40af (patch) | |
| tree | a1e92645d1260f587f705b6dd8d5d48bcd3392e1 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | 74d1d7cf36ce8f4767d947940df81da0a537b6ce (diff) | |
[FIX] project: invalid date format in kanban view
Reproduce the issue
- Install Projects
- Create a project
- Create a task with a deadline
The deadline format is correct in the form view but not in the
kanban view.
Cause
In the kanban view, there is some code applied on the `date_deadline`
field to add a class when the deadline is near.
As it uses a `span` with a `t-esc`, the only way to get the date
is to do `record.date_deadline.raw_value` which return the raw
value of the datetime object (a big string with all the infos).
This commit creates a char field for the formatted date and uses it
only for the display.
OPW-2122928
closes odoo/odoo#40707
Related: odoo/enterprise#6832
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
