diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2020-12-28 13:58:30 +0000 |
|---|---|---|
| committer | Nasreddin (bon) <bon@odoo.com> | 2020-12-30 15:54:00 +0000 |
| commit | c11e0fe2673fd18e6db45fd18a153042d525990a (patch) | |
| tree | 943e447372b251f1070a326e8edbcb347084d6e5 /addons/website/static/src/js | |
| parent | caaef5829b51f7e5862a6d730ea978e19deadd42 (diff) | |
[FIX] web: calendar_controller: Adapt date to server format on update
Issue
- Install "Time-Off" module
- Set user language to "Arabic"
- Open "Time-Off"
Traceback raised.
Cause
On update, JS send to backend date in arabic.
Python 'datetime' library does not manage arabic date.
Solution
Convert date format for the "server" on js-side.
In this case, it will also translate arabic numbers.
Also, adapt "dateToServer" to handle any format.
opw-2421268
closes odoo/odoo#63833
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/website/static/src/js')
0 files changed, 0 insertions, 0 deletions
