Skip to content
Snippets Groups Projects
Commit e49d0cd7 authored by Fabien Pinckaers's avatar Fabien Pinckaers
Browse files

[IMP] Typo

parent adbfed5b
No related branches found
No related tags found
No related merge requests found
......@@ -326,7 +326,7 @@ class account_payment(models.Model):
raise UserError(_("Only a draft payment can be posted. Trying to post a payment in state %s.") % rec.state)
if any(inv.state != 'open' for inv in rec.invoice_ids):
raise ValidationError(_("The payment cannot be processed because an invoice of the payment is not open !"))
raise ValidationError(_("The payment cannot be processed because the invoice is not open!"))
# Use the right sequence to set the name
if rec.payment_type == 'transfer':
......
......@@ -15,6 +15,6 @@ class ValidateAccountMove(models.TransientModel):
if move.state == 'draft':
move_to_post += move
if not move_to_post:
raise UserError(_('There is no account move entries in draft state to post.'))
raise UserError(_('There is no journal items in draft state to post.'))
move_to_post.post()
return {'type': 'ir.actions.act_window_close'}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment