[FIX] hr_holidays: correct tooltip for sick leaves

The displayed date was incorrect: instead of the day number in the month (1st-31th), we displayed the day order in the week (0th-6th).

Yeah, this one was a tricky one...
This commit is contained in:
Richard Mathot
2015-03-20 08:31:34 +01:00
parent 3baab9b22d
commit c405dfe3b0
+1 -1
View File
@@ -619,7 +619,7 @@
<xpath expr="//li[@id='last_login']" position="inside">
<span t-if="record.current_leave_id.raw_value" style="font-size: 100%%"
t-att-class="record.current_leave_state.raw_value=='validate'?'oe_kanban_button oe_kanban_color_3':'oe_kanban_button oe_kanban_color_2'"
t-att-title="moment(record.leave_date_from.raw_value).format('ddd do MMM') + ' - ' + moment(record.leave_date_to.raw_value).format('ddd do MMM')">
t-att-title="moment(record.leave_date_from.raw_value).format('ddd Do MMM') + ' - ' + moment(record.leave_date_to.raw_value).format('ddd Do MMM')">
<field name="current_leave_id"/>
</span>
</xpath>