<page string="Procurements" groups="base.group_user">
<group name="procurement">
<group name="general">
+ <field name="active"/>
<field name="standard_price"/>
</group>
<group name="procurement_uom" groups="product.group_uom" string="Purchase">
<field name="uom_po_id"/>
</group>
</group>
- <label for="active"/>
- <field name="active"/>
<separator string="Description for Suppliers"/>
<field name="description_purchase" placeholder="This note will be displayed on requests for quotation..."/>
</page>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
- <field name="type" position="after">
- <field name="project_id" attrs="{'invisible':[('type','!=','service')]}" />
- <field name="auto_create_task" attrs="{'invisible': [('type', '!=', 'service')]}"/>
- </field>
+ <xpath expr="//group[@name='general']" 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>
+ </xpath>
</field>
</record>
<record id="task_type_edit_mrp_inherit" model="ir.ui.view">
<xpath expr="//group[@name='general']" position="after" >
<newline/>
- <group string="Supply Chain Information">
+ <group string="Supply Chain Information" attrs="{'invisible': [('type', '=', 'service')]}">
<field name="route_ids" widget="many2many_checkboxes"/>
</group>
<newline/>