From b0ce65daccb1918f99de598916424845e23a586e Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 9 Feb 2016 14:32:08 +0100 Subject: [PATCH] [FIX] sale: quantity in invoice line from invoicing Introduced by 98ccb8539e8e3470aab4bbba6484562bf3e69088 --- addons/sale/wizard/sale_make_invoice_advance.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index a66bd83add9..73798aa4695 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -81,7 +81,7 @@ class SaleAdvancePaymentInv(models.TransientModel): 'origin': order.name, 'account_id': account_id, 'price_unit': amount, - 'quantity': 0.0, + 'quantity': 1.0, 'discount': 0.0, 'uom_id': self.product_id.uom_id.id, 'product_id': self.product_id.id, @@ -131,7 +131,6 @@ class SaleAdvancePaymentInv(models.TransientModel): 'product_uom': self.product_id.uom_id.id, 'product_id': self.product_id.id, 'tax_id': [(6, 0, self.product_id.taxes_id.ids)], - 'qty_invoiced': 0.0, }) self._create_invoice(order, so_line, amount) if self._context.get('open_invoices', False):