From fe2fd41d7d12a9dcd8a7a2ac19aa9514366b767f Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 12 Nov 2013 14:06:12 +0100 Subject: [PATCH] [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 --- addons/procurement/schedulers.py | 1 + 1 file changed, 1 insertion(+) 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}