diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py index 4cca4aeda79..8f82f6dcc29 100644 --- a/addons/sale_stock/sale_stock.py +++ b/addons/sale_stock/sale_stock.py @@ -196,7 +196,7 @@ class product_product(osv.osv): #when sale/product is installed alone, there is no need to create procurements, but with sale_stock #we must create a procurement for each product that is not a service. for product in self.browse(cr, uid, ids, context=context): - if product.type != 'service': + if product.id and product.type != 'service': return True return super(product_product, self).need_procurement(cr, uid, ids, context=context)