summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2013-11-12 14:06:12 +0100
committerOlivier Dony <odo@openerp.com>2013-11-12 14:06:12 +0100
commitfe2fd41d7d12a9dcd8a7a2ac19aa9514366b767f (patch)
treefd07e623f7ba715249a65eeead65a3d539ab2f78
parentf08f16cb30d96c45f2f07265fd973bc2956afb2a (diff)
[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
-rw-r--r--addons/procurement/schedulers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py
index 07280b38ae7..c9b18dbccb4 100644
--- a/addons/procurement/schedulers.py
+++ b/addons/procurement/schedulers.py
@@ -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}