Fix invoiced quantity of service products

This commit is contained in:
Nicolas Évrard committed 2011-05-30 16:21:57 +02:00
1 parent 039b91fff3
commit ea96d7b5d4
1 file changed
+3 -1
+3 -1
View File
@@ -1160,7 +1160,9 @@ class SaleLine(ModelSQL, ModelView):
if line.type != 'line':
return [res]
if line.sale.invoice_method == 'order':
if (line.sale.invoice_method == 'order'
or not line.product
or line.product.type == 'service'):
quantity = line.quantity
else:
quantity = 0.0