[FIX] stock: "Request procurement" wizard does not fill warehouse

The function "make_procurement" must take into account the warehouse_id
to create procurement.

opw:631318
This commit is contained in:
Goffin Simon 2015-03-27 12:23:34 +01:00
parent ff902f62e2
commit 1f76ed0159
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class make_procurement(osv.osv_memory):
'product_id': proc.product_id.id,
'product_qty': proc.qty,
'product_uom': proc.uom_id.id,
'warehouse_id': proc.warehouse_id.id,
'location_id': wh.lot_stock_id.id,
'company_id': wh.company_id.id,
})