Fix invoiced quantity of service products
(transplanted from bae282cbc06a46a076deee3ddf4cf52813eb9cce)
This commit is contained in:
1 parent
61d7a5307b
commit
952b82b37e
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user