Skip to content

Commit

Permalink
[FIX] get_paid_lines: avoid singleton error
Browse files Browse the repository at this point in the history
Fixes #294
  • Loading branch information
MiquelRForgeFlow authored and willer-mo committed Jan 29, 2020
1 parent 30e6836 commit 01f0245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_check_printing_report_base/report/check_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def get_paid_lines(self, payments):
payment.journal_id.default_credit_account_id
rec_lines = payment.move_line_ids.filtered(
lambda x: x.account_id.reconcile and x.account_id != pay_acc)
amls = rec_lines.matched_credit_ids.mapped('credit_move_id') + \
rec_lines.matched_debit_ids.mapped('debit_move_id')
amls = rec_lines.mapped('matched_credit_ids.credit_move_id') + \
rec_lines.mapped('matched_debit_ids.debit_move_id')
amls -= rec_lines
for aml in amls:
date_due = aml.date_maturity
Expand Down

0 comments on commit 01f0245

Please sign in to comment.