[IMP] hr_work_entry: improve hr.work.entry pivot view

before this commit, the pivot view of hr.work.entry model
is not showing the details by default.

after this commit, the pivot view will be expanded by
employee and work entry type and duration is added
as measure for the pivot view.

closes odoo/odoo#115303

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
niyasraphy
2023-03-15 16:08:20 +01:00
parent 33e54a4feb
commit eee5527840
@@ -96,7 +96,9 @@
<field name="model">hr.work.entry</field>
<field name="arch" type="xml">
<pivot string="Work Entries" sample="1">
<field name="duration" widget="float_time" readonly="1"/>
<field name="duration" widget="float_time" type="measure"/>
<field name="employee_id" type="row"/>
<field name="work_entry_type_id" type="col"/>
</pivot>
</field>
</record>