[IMP] mrp, project_mrp, stock: usbility of product form view

bzr revid: qdp-launchpad@openerp.com-20131220103333-3sftj95kg56637rz
This commit is contained in:
Quentin (OpenERP) 2013-12-20 11:33:33 +01:00
parent 6b316a3000
commit 3972c0948c
3 changed files with 3 additions and 3 deletions

View File

@ -543,7 +543,7 @@
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='procurement_uom']" position="before">
<xpath expr="//group[@name='procurement_uom']" position="after">
<group name="delay" string="Delays" attrs="{'invisible':[('type','=','service')]}">
<label for="produce_delay" />
<div attrs="{'invisible':[('type','=','service')]}">

View File

@ -16,7 +16,7 @@
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='general']" position="after">
<xpath expr="//group[@name='procurement_uom']" 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)]}"/>

View File

@ -1869,7 +1869,7 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='general']" position="after" >
<xpath expr="//group[@name='procurement_uom']" position="after" >
<newline/>
<group string="Supply Chain Information" attrs="{'invisible': [('type', '=', 'service')]}">
<field name="route_ids" widget="many2many_checkboxes"/>