Skip to content

Commit

Permalink
[IMP] account_payment_term_surcharge: move domain
Browse files Browse the repository at this point in the history
account_move domain nows include partialy paided invoices

closes #468

Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
  • Loading branch information
ica-adhoc committed Jan 9, 2024
1 parent 16f2348 commit 4962090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_payment_term_surcharge/models/account_move.py
Expand Up @@ -17,7 +17,7 @@ def _cron_recurring_surcharges_invoices(self, batch_size=60):
domain = [
('next_surcharge_date', '<=', current_date),
('state', '=', 'posted'),
('payment_state', '=', 'not_paid')]
('payment_state', 'in', ['not_paid', 'partial'])]
_logger.info('Running Surcharges Invoices Cron Job, pendientes por procesar %s facturas' % self.search_count(domain))
to_create = self.search(domain)
to_create[:batch_size].create_surcharges_invoices()
Expand Down

0 comments on commit 4962090

Please sign in to comment.