[IMP]Improved BOM form view and added default quantity for product in mrp byproduct
bzr revid: dhr@tinyerp.com-20121126120042-g37rl8kfpz9jovsy
This commit is contained in:
parent
828cce9be0
commit
a652624909
|
@ -360,9 +360,9 @@
|
|||
<label string="-" attrs="{'invisible':[('product_uos','=',False)]}" class="oe_inline"/>
|
||||
<field name="product_uos" class="oe_inline"/>
|
||||
</div>
|
||||
<label for="routing_id" class="oe_inline"/>
|
||||
<div groups="mrp.group_mrp_routings">
|
||||
<label for="routing_id" class="oe_edit_only"/>
|
||||
<h2><field name="routing_id" class="oe_inline"/></h2>
|
||||
<field name="routing_id" class="oe_inline"/>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
|
|
|
@ -39,6 +39,7 @@ class mrp_subproduct(osv.osv):
|
|||
}
|
||||
_defaults={
|
||||
'subproduct_type': 'variable',
|
||||
'product_qty': lambda *a: 1.0,
|
||||
}
|
||||
|
||||
def onchange_product_id(self, cr, uid, ids, product_id, context=None):
|
||||
|
|
Loading…
Reference in New Issue