Skip to content

Commit

Permalink
fix: only use receibable or payable accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisOForgeFlow committed Jan 4, 2023
1 parent d0d472f commit 04e6945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions account_payment_lines/models/account_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def _filter_amls(self, amls):
lambda x: x.partner_id.commercial_partner_id.id
== self.partner_id.commercial_partner_id.id
and x.amount_residual != 0
and x.account_id.internal_type in ("receivable", "payable")
)

def action_propose_payment_distribution(self):
Expand Down

0 comments on commit 04e6945

Please sign in to comment.