17 lines
866 B
XML
17 lines
866 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_product_timesheet_form" model="ir.ui.view">
|
|
<field name="name">product.template.timesheet.form</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="sale.product_template_form_view_invoice_policy"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='track_service']" position="attributes">
|
|
<attribute name="invisible">False</attribute>
|
|
<attribute name="attrs">{'invisible': [('type','!=','service')]}</attribute>
|
|
</xpath>
|
|
<field name="track_service" position="after">
|
|
<field name="project_id" attrs="{'invisible':['|', ('type','!=','service'), ('track_service', '<>', 'task')]}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo> |