From a7ec2d94fe7f5f103847ce47afc40d188a0b3c59 Mon Sep 17 00:00:00 2001 From: Ankit Joshi Date: Fri, 22 Sep 2017 19:44:54 +0530 Subject: [PATCH] [FIX] account: clean message if no payment to post Was PR #19656 --- addons/account/models/account_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index fe353bb1574..202bb87b262 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -455,7 +455,7 @@ class account_payment(models.Model): for rec in self: if rec.state != 'draft': - raise UserError(_("Only a draft payment can be posted. Trying to post a payment in state %s.") % rec.state) + raise UserError(_("Only a draft payment can be posted.")) if any(inv.state != 'open' for inv in rec.invoice_ids): raise ValidationError(_("The payment cannot be processed because the invoice is not open!"))