[FIX] hr_timesheet: use float_time widget

To display the sum as a time and not a float number

Closes #26405
This commit is contained in:
Dennis Sluijk
2018-08-16 16:28:14 +02:00
committed by Martin Trigaux
parent 69dd3dfa90
commit b30dd020fd
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-19 13:42+0000\n"
"PO-Revision-Date: 2018-02-19 13:42+0000\n"
"POT-Creation-Date: 2018-08-16 14:27+0000\n"
"PO-Revision-Date: 2018-08-16 14:27+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -203,6 +203,11 @@ msgstr ""
msgid "Hours Spent"
msgstr ""
#. module: hr_timesheet
#: model:ir.ui.view,arch_db:hr_timesheet.view_task_tree2_inherited
msgid "Initially Planned Hours"
msgstr ""
#. module: hr_timesheet
#: model:ir.model.fields,field_description:hr_timesheet.field_res_config_settings_module_project_timesheet_holidays
#: model:ir.ui.view,arch_db:hr_timesheet.res_config_settings_view_form
+1 -1
View File
@@ -97,7 +97,7 @@
<field eval="2" name="priority"/>
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="planned_hours"/>
<field name="planned_hours" widget="float_time" sum="Initially Planned Hours" />
<field name="remaining_hours" widget="float_time" sum="Remaining Hours" readonly="1"/>
<field name="total_hours" invisible="1"/>
<field name="effective_hours" widget="float_time" sum="Spent Hours" invisible="1"/>