summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-08-28 16:35:58 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-08-28 16:35:58 +0700
commit6f6c6c86d91c811984d6ce6c478f4024cd4fb3ed (patch)
tree1a619f24438c63c19517ae5be2946dec24339a5e
parent4fcaaf9bc4e1e595e196437887dbe7c15acc5c41 (diff)
(andri) live
-rw-r--r--indoteknik_custom/models/account_move.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 8e58ce6b..c44cad78 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -295,8 +295,8 @@ class AccountMove(models.Model):
overdue_amount = sum(overdue_invoices.mapped('amount_total'))
currency = invs[0].currency_id if invs else partner.company_id.currency_id
- # tempo_link = 'https://www.indoteknik.com/my/tempo'
- tempo_link = 'http://localhost:2100/my/tempo'
+ tempo_link = 'https://indoteknik.com/my/tempo'
+ # tempo_link = 'http://localhost:2100/my/tempo'
limit_info_html = f"""
<p><b>Informasi Tambahan:</b></p>
@@ -386,20 +386,20 @@ class AccountMove(models.Model):
# Siapkan email values
values = {
- 'subject': f"Reminder Invoice Due Test - {partner.name}",
- 'email_to': 'andrifebriyadiputra@gmail.com',
- # 'email_to': email_to,
+ 'subject': f"Reminder Invoice Due - {partner.name}",
+ # 'email_to': 'andrifebriyadiputra@gmail.com',
+ 'email_to': email_to,
'email_from': 'finance@indoteknik.co.id',
- # 'email_cc': ",".join(sorted(set(cc_list))),
+ 'email_cc': ",".join(sorted(set(cc_list))),
'body_html': body_html,
- # 'reply_to': 'finance@indoteknik.co.id',
+ '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']}")
+ _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})
+ invs.write({'reminder_sent_date': today})
# Post ke chatter
user_system = self.env['res.users'].browse(25)
system_id = user_system.partner_id.id if user_system else False