odoo/addons/sale_timesheet/views/project_task_views.xml

22 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_sale_service_inherit_form2" model="ir.ui.view">
<field name="name">sale.service.form.view.inherit</field>
<field name="model">project.task</field>
<field name="groups_id" eval="[(4, ref('base.group_user'))]"/>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button type="object" name="action_view_so"
class="oe_stat_button" icon="fa-dollar"
attrs="{'invisible': [('sale_line_id', '=', False)]}"
string="Sales Order"/>
</xpath>
<field name="company_id" position="before">
<field name="procurement_id" groups="base.group_no_one"/>
<field name="sale_line_id" string="Order Line" groups="base.group_no_one"/>
</field>
</field>
</record>
</odoo>