[FIX] account: usererror takes only one argument

opw-677589
This commit is contained in:
Denis Ledoux
2016-05-17 16:30:30 +02:00
parent 128d58f1c7
commit 449a160ef9
+1 -1
View File
@@ -715,7 +715,7 @@ class AccountMoveLine(models.Model):
:param new_mv_line_dicts: list of dicts containing values suitable fot account_move_line.create()
"""
if len(self) < 1 or len(self) + len(new_mv_line_dicts) < 2:
raise UserError(_('Error!'), _('A reconciliation must involve at least 2 move lines.'))
raise UserError(_('A reconciliation must involve at least 2 move lines.'))
# Create writeoff move lines
if len(new_mv_line_dicts) > 0: