diff options
| author | Kevin Baptiste <kba@odoo.com> | 2019-06-13 13:56:02 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-18 10:27:50 +0000 |
| commit | e9d989827686d1089c1ea1c9a6b47b62a09e2de4 (patch) | |
| tree | 879acfbe66cb69ce025114f0e8c2180e67b569f7 /addons/web/static/src/js/fields | |
| parent | 9f5f2fc502ff5689533c93f8af135de613bdf6ab (diff) | |
[IMP] hr: Review the UX for 'My Profile' view
1/ web: adapt formatDate to handle NaN values
DashboardRenderer might return NaN for `Date` or `DateTime` fields if
their original value is null or incorrect.
2/ hr: add job_title in demo data
3/ hr_recruitment: link employee in the chatter for new recruits
4/ hr: remove employee documents in the model
5/ hr_attendance: improve resiliency of relative_time
6/ hr: display manager on res_users
7/ hr: change Address Book to Employee Directory
TaskID: 2009111
closes odoo/odoo#34180
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/field_utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/field_utils.js b/addons/web/static/src/js/fields/field_utils.js index ec99f4fa0f6..782f76d6b10 100644 --- a/addons/web/static/src/js/fields/field_utils.js +++ b/addons/web/static/src/js/fields/field_utils.js @@ -106,7 +106,7 @@ function formatChar(value, field, options) { * @returns {string} */ function formatDate(value, field, options) { - if (value === false) { + if (value === false || isNaN(value)) { return ""; } if (field && field.type === 'datetime') { |
