Reviewers: ,


Please review this at http://codereview.tryton.org/35010/

Affected files:
  M sale.py


Index: sale.py
===================================================================

--- a/sale.py
+++ b/sale.py
@@ -1160,7 +1160,11 @@
         if line.type != 'line':
             return [res]

-        if line.sale.invoice_method == 'order':
+        if (line.sale.invoice_method == 'order'
+                or line.product.type == 'service'):
+            # If we create an invoice on order or if the product is
+            # a service then the quantity to invoice is the quantity of the
+            # line
             quantity = line.quantity
         else:
             quantity = 0.0



--
[email protected] mailing list

Reply via email to