summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-08-04 15:23:35 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-08-04 15:23:35 +0700
commit9e783f7e3c356eb53f3afe10601a4eb9d0eeecdc (patch)
tree69a174e31409ae58cc0a83679efc91c6dbef6ff0
parent1d58c7888d95793a4f393c9520b9d89a04f69c08 (diff)
(andri) fix template
-rw-r--r--indoteknik_custom/models/account_move.py10
-rw-r--r--indoteknik_custom/views/mail_template_invoice_reminder.xml14
2 files changed, 12 insertions, 12 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 684f875d..b9315c43 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -119,7 +119,7 @@ class AccountMove(models.Model):
today + timedelta(days=7),
]
- partner = self.env['res.partner'].search([('name', 'ilike', 'SINAR SUKSES MANDIRI')], limit=1)
+ partner = self.env['res.partner'].search([('name', 'ilike', 'DIRGANTARA YUDHA ARTHA')], limit=1)
if not partner:
_logger.info("Partner tidak ditemukan.")
return
@@ -172,17 +172,17 @@ class AccountMove(models.Model):
days_to_due = (inv.invoice_date_due - today).days if inv.invoice_date_due else 0
invoice_table_rows += f"""
<tr>
+ <td>{inv.partner_id.name}</td>
+ <td>{inv.purchase_order_id.name or '-'}</td>
<td>{inv.name}</td>
<td>{fields.Date.to_string(inv.invoice_date) or '-'}</td>
<td>{fields.Date.to_string(inv.invoice_date_due) or '-'}</td>
- <td>{days_to_due}</td>
<td>{formatLang(self.env, inv.amount_total, currency_obj=inv.currency_id)}</td>
<td>{inv.invoice_payment_term_id.name or '-'}</td>
- <td>{inv.purchase_order_id.name or '-'}</td>
- <td>{inv.ref or '-'}</td>
+ <td>{days_to_due}</td>
</tr>
"""
-
+ dadada = self.partner_id.name
# Tentukan pesan berdasarkan sisa hari
days_to_due_message = ""
closing_message = ""
diff --git a/indoteknik_custom/views/mail_template_invoice_reminder.xml b/indoteknik_custom/views/mail_template_invoice_reminder.xml
index 6dfbe898..07f2122b 100644
--- a/indoteknik_custom/views/mail_template_invoice_reminder.xml
+++ b/indoteknik_custom/views/mail_template_invoice_reminder.xml
@@ -16,14 +16,14 @@
<table border="1" cellpadding="4" cellspacing="0" style="border-collapse: collapse; font-size: 12px">
<thead>
<tr style="background-color: #f2f2f2;" align="left">
- <th>Invoice Number</th>
- <th>Tanggal Invoice</th>
- <th>Jatuh Tempo</th>
- <th>Sisa Hari</th>
- <th>Total</th>
- <th>Payment Term</th>
+ <th>Customer</th>
<th>No. PO</th>
- <th>Referensi</th>
+ <th>Invoice Number</th>
+ <th>Invoice Date</th>
+ <th>Due Date</th>
+ <th>Amount</th>
+ <th>Term</th>
+ <th>Days To Due</th>
</tr>
</thead>
<tbody>