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

X-original-commit: 4962090
  • Loading branch information
ica-adhoc authored and jjscarafia committed Apr 29, 2024
1 parent 364aefb commit 8c6765a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions account_payment_term_surcharge/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ def _get_payment_term_surcharges(self):

def _cron_recurring_surcharges_invoices(self):
_logger.info('Running Surcharges Invoices Cron Job')
self.search([
('invoice_payment_term_id.surcharge_ids', '!=', False),
('state', '=', 'posted'),
('payment_state', '=', 'not_paid')],
self.search([('invoice_payment_term_id.surcharge_ids', '!=', False),('state', '=', 'posted'),('payment_state', 'in', ['not_paid', 'partial'])],
# buscamos facturas que tengan surcharges, esten posteadas y aun no pagadas
).create_surcharges_invoices()

Expand Down

0 comments on commit 8c6765a

Please sign in to comment.