[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
This commit is contained in:
parent
9ac62d76bb
commit
e61970241f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue