From d4bcf5b69496f70dd65ffc0babfdd5d3c7398463 Mon Sep 17 00:00:00 2001 From: "Nasreddin (bon)" Date: Mon, 25 Jan 2021 12:11:52 +0000 Subject: [PATCH] [FIX] gantt: Display gantt popover dates in user locale Issue - Install "Manufacturing" module - Go to settings and activate "Master Production Schedule" - Install Dutch language - Switch user language to Dutch - Go to Manufacturing -> Planning -> Planning by Production - Hover work order Dates are not displayed with user locale. Cause Date are formated to "YYYY-MM-DD HH:mm:ss", regardless the locale. Solution Format date instead with locale format letters (L, LL, LTS, ...) Doc : https://momentjs.com/docs/#/parsing/string-format/ Go to "Locale aware formats" section opw-2430570 closes odoo/odoo#65092 X-original-commit: 08978c6d2d14a94e6ee2fea0dedc805a56378de0 Related: odoo/enterprise#15970 Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: bon-odoo --- addons/mrp/views/mrp_workorder_views.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/mrp/views/mrp_workorder_views.xml b/addons/mrp/views/mrp_workorder_views.xml index 2cde0684285..ef2f5379f36 100644 --- a/addons/mrp/views/mrp_workorder_views.xml +++ b/addons/mrp/views/mrp_workorder_views.xml @@ -308,8 +308,8 @@
    -
  • Start Date:
  • -
  • Stop Date:
  • +
  • Start Date:
  • +
  • Stop Date:
  • Workcenter:
@@ -344,8 +344,8 @@
    -
  • Start Date:
  • -
  • Stop Date:
  • +
  • Start Date:
  • +
  • Stop Date:
  • Workcenter: