1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_procurement_task_form" model="ir.ui.view">
5 <field name="name">procurement.procurement.form.view.inherit</field>
6 <field name="model">procurement.order</field>
7 <field name="inherit_id" ref="procurement.procurement_form_view"/>
8 <field name="arch" type="xml">
9 <field name="close_move" position="after">
10 <field name="task_id"/>
14 <record id="view_product_task_form" model="ir.ui.view">
15 <field name="name">product.form.view.inherit</field>
16 <field name="model">product.product</field>
17 <field name="inherit_id" ref="stock.view_normal_procurement_locations_form"/>
18 <field name="arch" type="xml">
19 <field name="type" position="after">
20 <field name="project_id" attrs="{'invisible':[('type','!=','service')]}" />
24 <record id="view_project_mrp_inherit_form2" model="ir.ui.view">
25 <field name="name">project.mrp.form.view.inherit</field>
26 <field name="model">project.task</field>
27 <field name="inherit_id" ref="project.view_task_form2"/>
28 <field name="arch" type="xml">
29 <field name="state" position="after">
30 <field name="sale_line_id" string="Order Line"/>
34 <record id="product_product_normal_form_supply_view" model="ir.ui.view">
35 <field name="name">product.normal.form.project_mrp.inherit</field>
36 <field name="model">product.product</field>
37 <field name="inherit_id" ref="procurement.product_form_view_procurement_button"/>
38 <field name="arch" type="xml">
39 <xpath expr="//field[@name='supply_method']" position="attributes">
40 <attribute name="invisible">False</attribute>
42 <group name="procurement_help" position="inside">
43 <p attrs="{'invisible': ['|','|',('type','<>','service'),('procure_method','<>','make_to_order'),('supply_method','<>','produce')]}">
44 When you sell this service to a customer, <b>a task</b> will be
45 created to follow up the job to do. This task will appear
46 in the project related to the contract of the sales order.