summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNasreddin (bon) <bon@odoo.com>2021-01-25 12:11:52 +0000
committerNasreddin (bon) <bon@odoo.com>2021-01-26 10:34:55 +0000
commit08978c6d2d14a94e6ee2fea0dedc805a56378de0 (patch)
tree088404eeb5a130d2bdedbc2b1a45bf1d99eac854 /addons
parentf6c05693f857acfb0f74bb76c4bd72f83d9fb335 (diff)
[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#65049 X-original-commit: 640d964ed421be9e2aa191f7fc131a418387b42b Related: odoo/enterprise#15954 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/mrp/views/mrp_workorder_views.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/mrp/views/mrp_workorder_views.xml b/addons/mrp/views/mrp_workorder_views.xml
index 8f22cea7d29..ad0837a5f36 100644
--- a/addons/mrp/views/mrp_workorder_views.xml
+++ b/addons/mrp/views/mrp_workorder_views.xml
@@ -301,8 +301,8 @@
<div class="row no-gutters">
<div class="col">
<ul class="pl-1 mb-0 list-unstyled">
- <li><strong>Start Date: </strong> <t t-esc="userTimezoneStartDate.format('YYYY-MM-DD HH:mm:ss')"/></li>
- <li><strong>Stop Date: </strong> <t t-esc="userTimezoneStopDate.format('YYYY-MM-DD HH:mm:ss')"/></li>
+ <li><strong>Start Date: </strong> <t t-esc="userTimezoneStartDate.format('L LTS')"/></li>
+ <li><strong>Stop Date: </strong> <t t-esc="userTimezoneStopDate.format('L LTS')"/></li>
<li><strong>Workcenter: </strong> <t t-esc="workcenter_id[1]"/></li>
</ul>
</div>
@@ -337,8 +337,8 @@
<div class="row no-gutters">
<div class="col">
<ul class="pl-1 mb-0 list-unstyled">
- <li><strong>Start Date: </strong> <t t-esc="userTimezoneStartDate.format('YYYY-MM-DD HH:mm:ss')"/></li>
- <li><strong>Stop Date: </strong> <t t-esc="userTimezoneStopDate.format('YYYY-MM-DD HH:mm:ss')"/></li>
+ <li><strong>Start Date: </strong> <t t-esc="userTimezoneStartDate.format('L LTS')"/></li>
+ <li><strong>Stop Date: </strong> <t t-esc="userTimezoneStopDate.format('L LTS')"/></li>
<li><strong>Workcenter: </strong> <t t-esc="workcenter_id[1]"/></li>
</ul>
</div>