summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/mail_template_invoice_reminder.xml43
1 files changed, 24 insertions, 19 deletions
diff --git a/indoteknik_custom/views/mail_template_invoice_reminder.xml b/indoteknik_custom/views/mail_template_invoice_reminder.xml
index b19171b2..176a68ba 100644
--- a/indoteknik_custom/views/mail_template_invoice_reminder.xml
+++ b/indoteknik_custom/views/mail_template_invoice_reminder.xml
@@ -3,22 +3,23 @@
<data noupdate="1">
<record id="mail_template_invoice_due_reminder" model="mail.template">
<field name="name">Invoice Reminder: Due Date Notification</field>
- <field name="model_id" ref="account.model_account_move"/>
- <field name="subject">[Reminder] Invoice ${object.name} is Due Soon</field>
+ <field name="model_id" ref="base.model_res_partner"/>
+ <field name="subject">[Reminder] Invoice Due Summary for ${object.name}</field>
<field name="email_from">finance@indoteknik.co.id</field>
- <field name="reply_to">finance@indoteknik.co.id</field>
<field name="email_to">andrifebriyadiputra@gmail.com</field>
+ <!-- <field name="email_to">${object.email|safe}</field> -->
<field name="body_html" type="html">
<div style="font-family:Arial, sans-serif; font-size:14px;">
- <p>Dengan Hormat Bpk/Ibu ${object.partner_id.name},</p>
+ <p>Dengan Hormat Bpk/Ibu ${object.name},</p>
- <p>Berikut adalah detail invoice Anda yang sudah mendekati atau telah jatuh tempo:</p>
+ <p>Berikut adalah daftar invoice Anda yang mendekati atau telah jatuh tempo:</p>
<table border="1" cellpadding="6" cellspacing="0" style="border-collapse: collapse; width: 100%;">
<thead>
<tr style="background-color: #f2f2f2;">
+ <th>No</th>
<th>Invoice Number</th>
- <th>Tanggal Invoice</th>
+ <th>Tanggal</th>
<th>Jatuh Tempo</th>
<th>Sisa Hari</th>
<th>Total</th>
@@ -26,30 +27,34 @@
</tr>
</thead>
<tbody>
- <tr>
- <td>${object.name}</td>
- <td>${format_date(object.invoice_date)}</td>
- <td>${format_date(object.invoice_date_due)}</td>
- <td>${object.invoice_day_to_due}</td>
- <td>${format_amount(object.amount_total, object.currency_id)}</td>
- <td>${object.ref or '-'}</td>
- </tr>
+ <t t-set="i" t-value="1"/>
+ <t t-foreach="ctx.get('invoices', [])" t-as="inv">
+ <tr>
+ <td><t t-esc="i"/></td>
+ <td><t t-esc="inv.name"/></td>
+ <td><t t-esc="format_date(inv.invoice_date)"/></td>
+ <td><t t-esc="format_date(inv.invoice_date_due)"/></td>
+ <td><t t-esc="inv.invoice_day_to_due"/></td>
+ <td><t t-esc="format_amount(inv.amount_total, inv.currency_id)"/></td>
+ <td><t t-esc="inv.ref or '-'"/></td>
+ </tr>
+ <t t-set="i" t-value="i + 1"/>
+ </t>
</tbody>
</table>
- <p>Mohon segera melakukan proses pembayaran sebelum jatuh tempo.</p>
-
- <p>Terima kasih atas perhatian dan kerjasamanya.</p>
+ <p>Mohon segera melakukan proses pembayaran. Terima kasih.</p>
<p>
Hormat Kami,<br/>
<strong>PT. INDOTEKNIK DOTCOM GEMILANG</strong><br/>
- Jl. Bandengan Utara 85A No. 8-9, Penjaringan, Jakarta Utara<br/>
- Telp: 021-2933 8828 / 29 | Email: finance@indoteknik.co.id
+ Telp: 021-2933 8828 / 29<br/>
+ Email: finance@indoteknik.co.id
</p>
</div>
</field>
<field name="auto_delete" eval="True"/>
</record>
+
</data>
</odoo>