Skip to content

Commit

Permalink
[FIX] sale_commission_check_deposit: do not filter non deposited checks
Browse files Browse the repository at this point in the history
  • Loading branch information
renda-dev committed Jul 16, 2024
1 parent 968523e commit 71c9257
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sale_commission_check_deposit/wizard/wizard_check_settle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


import json
from datetime import date, timedelta
from datetime import timedelta

from odoo import models

Expand Down Expand Up @@ -31,13 +31,12 @@ def get_move_ids(self, payments_widget):
[
("move_id", "in", account_move_ids),
("journal_id.is_check_journal", "=", True),
("check_deposit_id", "!=", False),
]
)
return all(
[
x.date_maturity + timedelta(days=x.journal_id.safety_days)
< date.today()
< self.date_payment_to
for x in move_lines
]
)

0 comments on commit 71c9257

Please sign in to comment.