diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-03-13 12:09:09 +0000 |
|---|---|---|
| committer | Lucas Lefèvre <lul@odoo.com> | 2019-03-13 12:47:33 +0000 |
| commit | 8f8c5080347b87aafc4012698433bd20e46df086 (patch) | |
| tree | 1f3502e3b8813caf2b684fcebcd0be8d2c9ff2d3 /addons/mail/data/mail_activity_data.xml | |
| parent | ad8a6afa4fbe89ecbbc027f00af5cc2bac025571 (diff) | |
[FIX] survey: Do not parse datetime as date
Commit 98d0424 (merged in saas-12.1) fixed a Deprecated warning by using
`field_utils.parse.date` instead of relying on
moment to parse the date.
However, a datetime question type was added in saas-12.2.
When the fix commit was forward ported, the parsing of datetime
broke as `field_utils.parse.date` can't parse a datetime.
Fix: use `field_utils.parse.datetime` if `questiontype === 'datetime'`.
Also, defining `toJSON` method is no longer necessary because
it is already done in the field_utils methods.
Diffstat (limited to 'addons/mail/data/mail_activity_data.xml')
0 files changed, 0 insertions, 0 deletions
