[FIX] website_project_timesheet: duration rounding

- Record a timesheet line duration of 2 minutes
- View the record in the frontend: it gives 1 minute 59 seconds

opw-694014
This commit is contained in:
Nicolas Martinelli
2016-12-02 12:52:38 +01:00
parent 8a7af44a07
commit 4fea5d1020
@@ -18,7 +18,7 @@
<td><t t-esc="timesheet.date"/></td>
<td><t t-esc="timesheet.name"/></td>
<td><t t-esc="timesheet.sudo().user_id.name"/></td>
<td><span t-field="timesheet.unit_amount" t-field-options='{"widget": "duration", "unit": "hour"}'/></td>
<td><span t-field="timesheet.unit_amount" t-field-options='{"widget": "duration", "unit": "hour", "round": "minute"}'/></td>
</tr>
</table>
</div>