diff options
| author | Rémy Baranx (bar) <bar@odoo.com> | 2020-02-25 14:03:34 +0000 |
|---|---|---|
| committer | Rémy Baranx (bar) <bar@odoo.com> | 2020-02-25 14:03:34 +0000 |
| commit | 880d0fc5001f34f519ace04f40f4a36207dee5a7 (patch) | |
| tree | 4e3f78c4c9b66271c5042732d79a5261fe9c9f3a | |
| parent | 659549d4e339a73576dde1562cd99b6188d30ec5 (diff) | |
[IMP] hr_timesheet: clean duration format in the portal
The duration format for timesheet durations has been set to "00:00"
closes odoo/odoo#46289
Related: odoo/enterprise#8787
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
| -rw-r--r-- | addons/hr_timesheet/views/hr_timesheet_portal_templates.xml | 2 | ||||
| -rw-r--r-- | addons/hr_timesheet/views/project_portal_templates.xml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml b/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml index 939c306767f..cc0ec4d8f04 100644 --- a/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml +++ b/addons/hr_timesheet/views/hr_timesheet_portal_templates.xml @@ -51,7 +51,7 @@ <td><span t-esc="timesheet.name"/></td> <td><span t-field="timesheet.date" t-options='{"widget": "date"}'/></td> <td><span t-field="timesheet.employee_id"/></td> - <td class="text-right"><span t-field="timesheet.unit_amount" t-options='{"widget": "duration", "unit": "hour", "round": "minute"}'/></td> + <td class="text-right"><span t-field="timesheet.unit_amount" t-options='{"widget": "float_time"}'/></td> </tr> </t> </tbody> diff --git a/addons/hr_timesheet/views/project_portal_templates.xml b/addons/hr_timesheet/views/project_portal_templates.xml index 8a3e6ff2ad0..0d248cd1eed 100644 --- a/addons/hr_timesheet/views/project_portal_templates.xml +++ b/addons/hr_timesheet/views/project_portal_templates.xml @@ -25,7 +25,7 @@ <td><t t-esc="timesheet.date" t-options='{"widget": "date"}'/></td> <td><t t-esc="timesheet.name"/></td> <td><t t-esc="timesheet.employee_id.name"/></td> - <td class="text-right"><span t-field="timesheet.unit_amount" t-options='{"widget": "duration", "unit": "hour", "round": "minute"}'/></td> + <td class="text-right"><span t-field="timesheet.unit_amount" t-options='{"widget": "float_time"}'/></td> </tr> </table> </template> |
