[FIX] procurement: order points must procure goods in the specifiedt warehouse

The default warehouse picked by procurements only works
for companies that only have on warehouse

bzr revid: odo@openerp.com-20131112130612-brmazfdghrh1ck7x
This commit is contained in:
Olivier Dony 2013-11-12 14:06:12 +01:00
parent f08f16cb30
commit fe2fd41d7d
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ class procurement_order(osv.osv):
'company_id': orderpoint.company_id.id,
'product_uom': orderpoint.product_uom.id,
'location_id': orderpoint.location_id.id,
'warehouse_id': orderpoint.warehouse_id.id,
'procure_method': 'make_to_order',
'origin': orderpoint.name}