From 8d97d976f8e3265bc02dc1e1883d540a57cb3d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 23 Jan 2009 17:38:05 +0100 Subject: [PATCH] If amount_to_pay_today is zero used amount_to_pay in pay invoice wizard --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 6aee5c765f..8c26dfee4e 100644 --- a/invoice.py +++ b/invoice.py @@ -2051,7 +2051,7 @@ class PayInvoice(Wizard): invoice = invoice_obj.browse(cursor, user, data['id'], context=context) res['currency'] = invoice.currency.id res['currency_digits'] = invoice.currency.digits - res['amount'] = invoice.amount_to_pay_today + res['amount'] = invoice.amount_to_pay_today or invoice.amount_to_pay res['description'] = invoice.number return res