Odoo18-Base/addons/hr_timesheet/report/project_report_view.xml
2025-01-06 10:57:38 +07:00

41 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_task_project_user_graph_inherited" model="ir.ui.view">
<field name="name">report.project.task.user.graph.inherited</field>
<field name="model">report.project.task.user</field>
<field name="inherit_id" ref="project.view_task_project_user_graph" />
<field name="arch" type="xml">
<xpath expr="//graph" position="attributes">
<attribute name="js_class">hr_timesheet_graphview</attribute>
</xpath>
<xpath expr="//field[@name='project_id']" position='after'>
<field name="allocated_hours" widget="timesheet_uom" type="measure"/>
<field name="effective_hours" widget="timesheet_uom" type="measure"/>
<field name="overtime" widget="timesheet_uom"/>
<field name="total_hours_spent" widget="timesheet_uom"/>
<field name="remaining_hours" widget="timesheet_uom" type="measure"/>
<field name="remaining_hours_percentage" invisible="1"/>
</xpath>
</field>
</record>
<record id="view_task_project_user_pivot_inherited" model="ir.ui.view">
<field name="name">report.project.task.user.pivot.inherited</field>
<field name="model">report.project.task.user</field>
<field name="inherit_id" ref="project.view_task_project_user_pivot"/>
<field name="arch" type="xml">
<pivot position="inside">
<field name="allocated_hours" widget="timesheet_uom" type="measure"/>
<field name="effective_hours" widget="timesheet_uom"/>
<field name="subtask_effective_hours" widget="timesheet_uom"/>
<field name="total_hours_spent" widget="timesheet_uom" type="measure"/>
<field name="remaining_hours" widget="timesheet_uom" type="measure"/>
<field name="overtime" widget="timesheet_uom" type="measure"/>
<field name="remaining_hours_percentage" invisible="1"/>
</pivot>
</field>
</record>
</data>
</odoo>