summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/mail_template_invoice_reminder.xml
blob: 3534f7f60a9b13bb97679b3a23f00e23866cdb18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<odoo>
  <data noupdate="0">
    <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 Due - ${object.name}</field>
      <field name="email_from">finance@indoteknik.co.id</field>
      <field name="email_to"></field>
      <field name="body_html" type="html">
        <div style="font-family:Arial, sans-serif; font-size:13px; color:#333;">
          <p><b>Dear ${object.name},</b></p>

          <p>${days_to_due_message}</p>

          <table cellpadding="6" cellspacing="0" width="100%" 
                 style="border-collapse:collapse; font-size:12px; border:1px solid #ddd;">
            <thead>
              <tr style="background-color:#f2f2f2; text-align:left;">
                <th style="border:1px solid #ddd;">No.</th>
                <th style="border:1px solid #ddd;">Customer</th>
                <th style="border:1px solid #ddd;">No. PO</th>
                <th style="border:1px solid #ddd;">Invoice Number</th>
                <th style="border:1px solid #ddd;">Invoice Date</th>
                <th style="border:1px solid #ddd;">Due Date</th>
                <th style="border:1px solid #ddd;">Amount</th>
                <th style="border:1px solid #ddd;">Term</th>
                <th style="border:1px solid #ddd;">Days To Due</th>
              </tr>
            </thead>
            <tbody>
              <!-- baris invoice akan diinject dari Python -->
            </tbody>
          </table>

          <p>${closing_message}</p>
          ${limit_info_html}
          <br/>
          <p>Terima Kasih.</p>
          <br/><br/>
          <p>
            <b>
              Best Regards,<br/><br/>
              Widya R.<br/>
              Dept. Finance<br/>
              PT. INDOTEKNIK DOTCOM GEMILANG<br/>
              <img src="https://erp.indoteknik.com/api/image/ir.attachment/datas/2135765" 
                   alt="Indoteknik" style="max-width:18%; height:auto;"/><br/>
              <a href="https://wa.me/6285716970374" target="_blank">+62-857-1697-0374</a> | 
              <a href="mailto:finance@indoteknik.co.id">finance@indoteknik.co.id</a>
            </b>
          </p>
          <p style="font-size:11px; color:#777;">
            <i>Email ini dikirim secara otomatis. Abaikan jika pembayaran telah dilakukan.</i>
          </p>
        </div>
      </field>
      <field name="auto_delete" eval="True"/>
    </record>
  </data>
</odoo>