Skip to content

Commit

Permalink
[IMP] hr_timesheet_overtime_rate: Add hours_worked to task view
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Sep 16, 2024
1 parent dc3d3d1 commit faf9def
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions hr_timesheet_overtime_rate/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"views/resource_views.xml",
"views/account_analytic_line_views.xml",
"views/hr_timesheet_sheet_views.xml",
"views/project_task_views.xml",
],
}
30 changes: 30 additions & 0 deletions hr_timesheet_overtime_rate/views/project_task_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
SPDX-FileCopyrightText: 2024 Coop IT Easy SC
SPDX-License-Identifier: AGPL-3.0-or-later
-->
<odoo>
<record id="view_task_form2_inherited" model="ir.ui.view">
<field
name="name"
>project.task.form.inherited (in hr_timesheet_overtime_rate)</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited" />
<field name="priority" eval="100" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='timesheet_ids']/tree/field[@name='unit_amount']"
position="before"
>
<field name="hours_worked" widget="float_time" />
</xpath>
<xpath
expr="//field[@name='timesheet_ids']/form/sheet/group/field[@name='unit_amount']"
position="before"
>
<field name="hours_worked" widget="float_time" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit faf9def

Please sign in to comment.