summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-08-25 13:45:25 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-08-25 13:45:25 +0700
commite1621acf8c11052405aa3ca46ad160fedc310e0a (patch)
tree55ca647801ac8b1465356f12b25c1c1fd1cc1f99
parenta5fcc1fe80508de9c827d6f5c5d06db3262a8ab0 (diff)
(andri) on reminder
-rw-r--r--indoteknik_custom/models/account_move.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 599b3220..905855c6 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -180,7 +180,7 @@ class AccountMove(models.Model):
('payment_state', 'not in', ['paid', 'in_payment', 'reversed']),
('invoice_date_due', 'in', target_dates),
('date_terima_tukar_faktur', '!=', False)
- ], limit=5)
+ ])
_logger.info(f"Invoices: {invoices}")
invoices = invoices.filtered(
@@ -331,7 +331,7 @@ class AccountMove(models.Model):
'reply_to': 'finance@indoteknik.co.id',
}
- # template.send_mail(invs[0].id, force_send=True, email_values=values)
+ template.send_mail(invs[0].id, force_send=True, email_values=values)
_logger.info(f"Mengirim email ke: {values['email_to']} > email CC: {values['email_cc']}")
_logger.info(f"Reminder terkirim ke {partner.name} ({values['email_to']}) → {len(invs)} invoice (dtd = {dtd})")
# flag