[ADD] timesheet_grid_description: hide duplicative name field

when timesheet_grid is installed with timesheet_description
This commit is contained in:
Jared Kipe
2022-01-09 14:24:35 -08:00
parent 82444f5603
commit aa534c1aec
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="timesheet_view_form_inherit" model="ir.ui.view">
<field name="name">account.analytic.line.form.inherit</field>
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="timesheet_grid.timesheet_view_form"/>
<field name="priority" eval="10000" />
<field name="arch" type="xml">
<!-- replace because name added to its own group via timesheet_description -->
<xpath expr="//sheet/group[last()]" position="replace" />
</field>
</record>
</odoo>