diff options
| author | Jason Van Malder <jvm@odoo.com> | 2019-11-28 12:18:39 +0000 |
|---|---|---|
| committer | Jason Van Malder <jvm@odoo.com> | 2019-11-28 12:18:39 +0000 |
| commit | fd9c6bdcc611dc787541a32ceb4e28b0e1c82683 (patch) | |
| tree | aeb284422feaa914dafcd0aff613a1a247038c95 /addons/web/static/lib/jquery.mjs.nestedSortable | |
| parent | b96830ed8301d7428a5d079ab40589874e6c0af4 (diff) | |
[FIX] project: fix crash when no language selected
Reproduce the issue
- Select a language (done by default)
- Install Project
- Create a project
- Create a task with a formatted date
- Reset the language
- Go on the project
Traceback
Cause
In 7e42c663, I format the date_deadline based on the user's language
but did'nt know that we could have no language selected.
This commit uses the `format_date` method from `odoo.tools.misc`
which fallback on the first language installed if there is no
language selected.
OPW-2146479
closes odoo/odoo#41057
X-original-commit: 7d06135712b6646816b0558a63e55bc10622e59c
Signed-off-by: Jason Van Malder <jasonvanmalder@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable')
0 files changed, 0 insertions, 0 deletions
