[IMP] product,stock: if product type service then redonly some fields
bzr revid: sbh@tinyerp.com-20100708124618-8k3c6abuy1d57g1d
This commit is contained in:
parent
0228b87107
commit
18831ae253
|
@ -3,7 +3,7 @@
|
|||
<data>
|
||||
|
||||
<!--
|
||||
Process
|
||||
Process Node from where the Procurement flow starts
|
||||
-->
|
||||
|
||||
<record id="process_process_procurementprocess0" model="process.process">
|
||||
|
@ -11,11 +11,6 @@
|
|||
<field name="model_id" ref="procurement.model_procurement_order"/>
|
||||
<field eval="1" name="active"/>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
Process Node
|
||||
-->
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
|
@ -127,9 +127,9 @@
|
|||
</group>
|
||||
<group colspan="2" col="2" name="store">
|
||||
<separator string="Storage Localisation" colspan="2"/>
|
||||
<field name="loc_rack"/>
|
||||
<field name="loc_row"/>
|
||||
<field name="loc_case"/>
|
||||
<field name="loc_rack" attrs="{'readonly':[('type','=','service')]}" />
|
||||
<field name="loc_row" attrs="{'readonly':[('type','=','service')]}"/>
|
||||
<field name="loc_case" attrs="{'readonly':[('type','=','service')]}"/>
|
||||
</group>
|
||||
|
||||
<group colspan="2" col="2" name="misc" groups="base.group_extended">
|
||||
|
|
|
@ -116,9 +116,9 @@
|
|||
<group name="store" position="after">
|
||||
<group col="2" colspan="2" name="store" groups="base.group_extended">
|
||||
<separator string="Counter-Part Locations Properties" colspan="2"/>
|
||||
<field name="property_stock_procurement" domain="[('usage','=','procurement')]"/>
|
||||
<field name="property_stock_production" domain="[('usage','=','production')]"/>
|
||||
<field name="property_stock_inventory" domain="[('usage','=','inventory')]"/>
|
||||
<field name="property_stock_procurement" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','procurement')]"/>
|
||||
<field name="property_stock_production" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','production')]"/>
|
||||
<field name="property_stock_inventory" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','inventory')]"/>
|
||||
</group>
|
||||
</group>
|
||||
</field>
|
||||
|
|
Loading…
Reference in New Issue