[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:
Goffin Simon 2015-07-16 09:46:36 +02:00
parent 9ac62d76bb
commit e61970241f
1 changed files with 1 additions and 1 deletions

View File

@ -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)