[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:
dhr 2012-11-26 17:30:42 +05:30
parent 828cce9be0
commit a652624909
2 changed files with 3 additions and 2 deletions

View File

@ -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>

View File

@ -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):