From e61970241f2ffab2ed0f8247c57f80195bb18c56 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 16 Jul 2015 09:46:36 +0200 Subject: [PATCH] [FIX] sale_stock: SO status When creating a SO with a line without specifying a product, the workflow didn't allow to pass the SO in Done when the invoice is paid. opw:644853 --- addons/sale_stock/sale_stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)