From e9d989827686d1089c1ea1c9a6b47b62a09e2de4 Mon Sep 17 00:00:00 2001 From: Kevin Baptiste Date: Thu, 13 Jun 2019 13:56:02 +0000 Subject: [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) --- addons/web/static/src/js/fields/field_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/fields/field_utils.js') 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') { -- cgit v1.2.3