From 1f5041f3dc8b1c207a2c987841fe7b57e8753f94 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Mon, 9 Jan 2017 11:13:25 +0100 Subject: [PATCH] [FIX] account: typo in warning --- addons/account/models/account_invoice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index e97a72edbf7..8894a278bec 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -570,7 +570,7 @@ class AccountInvoice(models.Model): # lots of duplicate calls to action_invoice_paid, so we remove those already paid to_pay_invoices = self.filtered(lambda inv: inv.state != 'paid') if to_pay_invoices.filtered(lambda inv: inv.state != 'open'): - raise UserError(_('Invoice must be validated in order to set it to register payemnt.')) + raise UserError(_('Invoice must be validated in order to set it to register payment.')) if to_pay_invoices.filtered(lambda inv: not inv.reconciled): raise UserError(_('You cannot pay an invoice which is partially paid. You need to reconcile payment entries first.')) return to_pay_invoices.write({'state': 'paid'}) @@ -578,13 +578,13 @@ class AccountInvoice(models.Model): @api.multi def action_invoice_re_open(self): if self.filtered(lambda inv: inv.state != 'paid'): - raise UserError(_('Invoice must be paid in order to set it to register payemnt.')) + raise UserError(_('Invoice must be paid in order to set it to register payment.')) return self.write({'state': 'open'}) @api.multi def action_invoice_cancel(self): if self.filtered(lambda inv: inv.state not in ['proforma2', 'draft', 'open']): - raise UserError(_("Invoice must be in draft,Pro-forma or open state in order to be cancelled.")) + raise UserError(_("Invoice must be in draft, Pro-forma or open state in order to be cancelled.")) return self.action_cancel() @api.multi