summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/account_move.py
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-08-27 13:42:03 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-08-27 13:42:03 +0700
commit71bda6165a9439979b862fb9f9cb31b741477a87 (patch)
tree18f4c1edb4318945b103aed5becfd25bb9a43c43 /indoteknik_custom/models/account_move.py
parent43049cea86883ffcfb6ae988dc46b74ad38def85 (diff)
parent2103a438acc24ad44965b869a28a15424838c9b5 (diff)
fix
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
-rw-r--r--indoteknik_custom/models/account_move.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index f5dd5a39..d9d15764 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -179,9 +179,8 @@ class AccountMove(models.Model):
('state', '=', 'posted'),
('payment_state', 'not in', ['paid', 'in_payment', 'reversed']),
('invoice_date_due', 'in', target_dates),
- ('date_terima_tukar_faktur', '!=', False),
- ('partner_id', 'in', [88813, 80163])
- ])
+ ('date_terima_tukar_faktur', '!=', False)
+ ], limit=5)
_logger.info(f"Invoices: {invoices}")
invoices = invoices.filtered(
@@ -409,8 +408,8 @@ class AccountMove(models.Model):
# 'reply_to': 'finance@indoteknik.co.id',
}
- 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']}")
+ # 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
invs.write({'reminder_sent_date': today})