Skip to content

Commit

Permalink
[IMP] Set bank_payment_line on open2generated
Browse files Browse the repository at this point in the history
  • Loading branch information
luismalta committed Dec 28, 2020
1 parent bd2faee commit d4b2fdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions l10n_br_account_payment_order/models/account_payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def open2generated(self):
payment_line.move_line_id.cnab_state = 'exporting_error'
continue
else:
for line in self.payment_line_ids:
if line.move_line_id:
line.move_line_id.bank_payment_line_id = \
line.bank_line_id
record.message_post(body='Arquivo gerado com sucesso.')

return result

0 comments on commit d4b2fdd

Please sign in to comment.