Files
suite/timesheet_grid_work_entry/views/timesheet_views.xml
Jared Kipe bb5784f7d9 [IMP] timesheet_grid_work_entry: dynamic ui for project task timer
WIP for grid views overrides to add work_type_id
2022-01-09 14:28:47 -08:00

33 lines
1.3 KiB
XML

<?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="arch" type="xml">
<xpath expr="//field[@name='task_id']" position="after">
<field name="work_type_id"
domain="[('allow_timesheet', '=', True)]"
context="{'default_allow_timesheet': True}" />
</xpath>
</field>
</record>
<record id="timesheet_view_grid_inherit" model="ir.ui.view">
<field name="name">account.analytic.line.grid.project.inherit</field>
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="timesheet_grid.timesheet_view_grid"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='task_id']" position="after">
<!-- <field name="work_type_id"
type="row"
domain="[('allow_timesheet', '=', True)]"
/> -->
<field name="work_type_id" type="row"/>
</xpath>
</field>
</record>
</odoo>