Fix invoiced quantity of service products

(transplanted from bae282cbc06a46a076deee3ddf4cf52813eb9cce)
This commit is contained in:
Nicolas Évrard committed 2011-05-30 16:21:57 +02:00
1 parent 61d7a5307b
commit 952b82b37e
1 file changed
+3 -1
+3 -1
View File
@@ -1276,7 +1276,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