<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_procurement_task_form" model="ir.ui.view">
            <field name="name">procurement.procurement.form.view.inherit</field>
            <field name="model">procurement.order</field>
            <field name="inherit_id" ref="procurement.procurement_form_view"/>
            <field name="arch" type="xml">
                <field name="origin" position="after">
                    <field name="task_id"/>
                </field>
            </field>
        </record>
        <record id="view_product_task_form" model="ir.ui.view">
            <field name="name">product.form.view.inherit</field>
            <field name="model">product.template</field>
            <field name="inherit_id" ref="product.product_template_form_view"/>
            <field name="arch" type="xml">
                <group name="procurement" position="after">
                    <group string="Project Management Information" attrs="{'invisible': [('type', '!=', 'service')]}">
                        <field name="auto_create_task"/>
                        <field name="project_id" attrs="{'invisible':['|', ('type','!=','service'), ('auto_create_task', '=', False)]}"/>
                    </group>
                </group>
            </field>
        </record>
        <record id="task_type_edit_mrp_inherit" model="ir.ui.view">
            <field name="name">project.task.type.mrp.inherit</field>
            <field name="model">project.task.type</field>
            <field name="inherit_id" ref="project.task_type_edit"/>
            <field name="arch" type="xml">
                <field name="case_default" position="after">
                    <field name="closed"/>
                </field>
            </field>
        </record>
        <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="inherit_id" ref="project.view_task_form2"/>
            <field name="arch" type="xml">
                <field name="company_id" position="before">
                    <field name="sale_line_id" string="Order Line"/>
                </field>
            </field>
        </record>
    </data>
</openerp>

