From 97542fb978fe273c3f6cabe7719aa01696aa2ede Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Tue, 21 Sep 2010 17:31:45 +0200 Subject: [PATCH] [IMP] account: better error message bzr revid: qdp-launchpad@tinyerp.com-20100921153145-82vhcj0s6d9w0qu2 --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 42e4bee12b6..c09e88ba49f 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -829,7 +829,7 @@ class account_invoice(osv.osv): total_percent += line.value_amount total_fixed = (total_fixed * 100) / inv.amount_total if (total_fixed + total_percent) > 100: - raise osv.except_osv(_('Error !'), _("You cannot create an invoice !\nAs you have defined payment term and so the total of invoice should be greater than the computed amount for journal entries using payment term")) + raise osv.except_osv(_('Error !'), _("Cannot create the invoice !\nThe payment term defined gives a computed amount greater than the total invoiced amount.")) # one move line per tax line iml += ait_obj.move_line_get(cr, uid, inv.id)