From a36396b19206970e935fa7bc3e4415fcc0914cfb Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Sun, 22 Mar 2015 18:34:47 +0100 Subject: [PATCH] [FIX] sale: based amount to compute advanced invoices The based amount to compute advanced invoices must be the amount_untaxed. opw:630975 --- addons/sale/wizard/sale_make_invoice_advance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index c4798cc44d4..750d450e3be 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -105,7 +105,7 @@ class sale_advance_payment_inv(osv.osv_memory): raise osv.except_osv(_('Incorrect Data'), _('The value of Advance Amount must be positive.')) if wizard.advance_payment_method == 'percentage': - inv_amount = sale.amount_total * wizard.amount / 100 + inv_amount = sale.amount_untaxed * wizard.amount / 100 if not res.get('name'): res['name'] = self._translate_advance(cr, uid, percentage=True, context=dict(context, lang=sale.partner_id.lang)) % (wizard.amount) else: