[FIX] stock: correct destination location for order point + autovalidate chained moves for procurements
bzr revid: odo@openerp.com-20101011191613-aw9753wodzb57wq2
This commit is contained in:
@@ -331,6 +331,7 @@ class procurement_order(osv.osv):
|
||||
'date_expected': procurement.date_planned,
|
||||
'state': 'draft',
|
||||
'company_id': procurement.company_id.id,
|
||||
'auto_validate': True,
|
||||
})
|
||||
move_obj.action_confirm(cr, uid, [id], context=context)
|
||||
self.write(cr, uid, [procurement.id], {'move_id': id, 'close_move': 1})
|
||||
|
||||
@@ -241,7 +241,7 @@ class procurement_order(osv.osv):
|
||||
'product_id': op.product_id.id,
|
||||
'product_qty': qty,
|
||||
'product_uom': op.product_uom.id,
|
||||
'location_id': op.warehouse_id.lot_input_id.id,
|
||||
'location_id': op.location_id.id,
|
||||
'procure_method': 'make_to_order',
|
||||
'origin': op.name
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user