[FIX] account_payment: Remove the title argument form UserError
Purpose ======= Actually UserError is not made to take a title actument.
This commit is contained in:
committed by
Yannick Tivisse
parent
bacc043fb5
commit
b2d4238246
@@ -633,9 +633,9 @@ class account_payment(models.Model):
|
||||
"""
|
||||
journal = journal or self.journal_id
|
||||
if not journal.sequence_id:
|
||||
raise UserError(_('Configuration Error !'), _('The journal %s does not have a sequence, please specify one.') % journal.name)
|
||||
raise UserError(_('Configuration Error !\nThe journal %s does not have a sequence, please specify one.') % journal.name)
|
||||
if not journal.sequence_id.active:
|
||||
raise UserError(_('Configuration Error !'), _('The sequence of journal %s is deactivated.') % journal.name)
|
||||
raise UserError(_('Configuration Error !\nThe sequence of journal %s is deactivated.') % journal.name)
|
||||
name = self.move_name or journal.with_context(ir_sequence_date=self.payment_date).sequence_id.next_by_id()
|
||||
return {
|
||||
'name': name,
|
||||
|
||||
Reference in New Issue
Block a user