Skip to content
Browse files

[FIX] hr_holidays: fix kanban view date format


	- Install Time Off & Studio
	- Set up your language to English with format date
	  to %d/%m/%y instead of %m/%d/%y
	- Enable Kanban view in Time Off dashboard with Studio
	- Compare Kanban and List view

	The list view dates is correctly formatted but not
	the kanban view dates


	We use momentjs which doesn't take the user date format
	in account, only the locale.


	Use a field with datetime widget which handle this case.


X-original-commit: 69b3578
  • Loading branch information
jvm-odoo committed Feb 13, 2020
1 parent 741a7c7 commit 08dc4054056f5a78062bb47b38f71bec2c8301cc
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/hr_holidays/views/hr_leave_views.xml
@@ -133,9 +133,9 @@
<div class="col-2"/>
<div class="col-10">
<span class="text-muted">from </span>
<t t-esc="moment(record.date_from.raw_value).format('L')"/>
<field name="date_from" widget="date"/>
<span class="text-muted">to </span>
<t t-esc="moment(record.date_to.raw_value).format('L')"/>
<field name="date_to" widget="date"/>
<div class="row no-gutters" t-if="['validate', 'refuse'].includes(record.state.raw_value)">

0 comments on commit 08dc405

Please sign in to comment.
You can’t perform that action at this time.