[FIX]orderpoint: when running scheduler, newly create procurement didn't had information about orderpoint warehouse

lp bug: https://launchpad.net/bugs/1273316 fixed

bzr revid: csn@openerp.com-20140129142613-zg3ysaklhf1r33w6
This commit is contained in:
Cedric Snauwaert
2014-01-29 15:26:13 +01:00
parent dfd96e9d7c
commit ab0a42756f
+2 -1
View File
@@ -309,7 +309,8 @@ class procurement_order(osv.osv):
'company_id': orderpoint.company_id.id,
'product_uom': orderpoint.product_uom.id,
'location_id': orderpoint.location_id.id,
'origin': orderpoint.name}
'origin': orderpoint.name,
'warehouse_id': orderpoint.warehouse_id.id}
def _product_virtual_get(self, cr, uid, order_point):
product_obj = self.pool.get('product.product')