Fix invoiced quantity of service products
This commit is contained in:
1 parent
039b91fff3
commit
ea96d7b5d4
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user