[MERGE] forward port branch saas-6 up to 63b7db377e
This commit is contained in:
@@ -87,7 +87,6 @@ class mrp_production(osv.osv):
|
||||
'product_uom': sub_product.product_uom.id,
|
||||
'location_id': source,
|
||||
'location_dest_id': production.location_dest_id.id,
|
||||
'move_dest_id': production.move_prod_id.id,
|
||||
'production_id': production.id
|
||||
}
|
||||
move_id = move_obj.create(cr, uid, data, context=context)
|
||||
|
||||
@@ -113,7 +113,7 @@ class stock_change_product_qty(osv.osv_memory):
|
||||
def onchange_location_id(self, cr, uid, ids, location_id, product_id, context=None):
|
||||
if location_id:
|
||||
qty_wh = 0.0
|
||||
qty = self.pool.get('product.product')._product_available(cr, uid, [product_id], context=dict(context or {}, location=location_id))
|
||||
qty = self.pool.get('product.product')._product_available(cr, uid, [product_id], context=dict(context or {}, location=location_id, compute_child=False))
|
||||
if product_id in qty:
|
||||
qty_wh = qty[product_id]['qty_available']
|
||||
return { 'value': { 'new_quantity': qty_wh } }
|
||||
|
||||
Reference in New Issue
Block a user