[FIX] account: IndentationError

Oversight of previous forward-port.
This commit is contained in:
Christophe Simonis
2019-04-02 17:44:36 +02:00
parent 1122b62d00
commit b3d4c2d178
@@ -241,7 +241,6 @@ class AccountBankStatement(models.Model):
#upon bank statement confirmation, look if some lines have the account_id set. It would trigger a journal entry
#creation towards that account, with the wanted side-effect to skip that line in the bank reconciliation widget.
journal_entries = line_journal_entries[st_line]
if st_line.account_id and not journal_entries.ids:
st_line.fast_counterpart_creation()
if not st_line.account_id and not journal_entries.ids and not st_line.statement_id.currency_id.is_zero(st_line.amount):
raise UserError(_('All the account entries lines must be processed in order to close the statement.'))