mail_template_data.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?xml version="1.0" ?>
  2. <odoo>
  3. <!-- Mail template are declared in a NOUPDATE block
  4. so users can freely customize/delete them -->
  5. <data noupdate="1">
  6. <!--Email template -->
  7. <record id="email_template_edi_invoice" model="mail.template">
  8. <field name="name">Invoice: Sending</field>
  9. <field name="model_id" ref="account.model_account_move"/>
  10. <field name="email_from">{{ (object.invoice_user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
  11. <field name="partner_to">{{ object.partner_id.id }}</field>
  12. <field name="subject">{{ object.company_id.name }} Invoice (Ref {{ object.name or 'n/a' }})</field>
  13. <field name="description">Sent to customers with their invoices in attachment</field>
  14. <field name="body_html" type="html">
  15. <div style="margin: 0px; padding: 0px;">
  16. <p style="margin: 0px; padding: 0px; font-size: 13px;">
  17. Dear
  18. <t t-if="object.partner_id.parent_id">
  19. <t t-out="object.partner_id.name or ''">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>),
  20. </t>
  21. <t t-else="">
  22. <t t-out="object.partner_id.name or ''">Brandon Freeman</t>,
  23. </t>
  24. <br /><br />
  25. Here is your
  26. <t t-if="object.name">
  27. invoice <span style="font-weight:bold;" t-out="object.name or ''">INV/2021/05/0005</span>
  28. </t>
  29. <t t-else="">
  30. invoice
  31. </t>
  32. <t t-if="object.invoice_origin">
  33. (with reference: <t t-out="object.invoice_origin or ''">SUB003</t>)
  34. </t>
  35. amounting in <span style="font-weight:bold;" t-out="format_amount(object.amount_total, object.currency_id) or ''">$ 143,750.00</span>
  36. from <t t-out="object.company_id.name or ''">YourCompany</t>.
  37. <t t-if="object.payment_state in ('paid', 'in_payment')">
  38. This invoice is already paid.
  39. </t>
  40. <t t-else="">
  41. Please remit payment at your earliest convenience.
  42. <t t-if="object.payment_reference">
  43. <br /><br />
  44. Please use the following communication for your payment: <span style="font-weight:bold;" t-out="object.payment_reference or ''">INV/2021/05/0005</span>.
  45. </t>
  46. </t>
  47. <br /><br />
  48. Do not hesitate to contact us if you have any questions.
  49. <t t-if="not is_html_empty(object.invoice_user_id.signature)">
  50. <br /><br />
  51. <t t-out="object.invoice_user_id.signature or ''">--<br/>Mitchell Admin</t>
  52. </t>
  53. </p>
  54. </div>
  55. </field>
  56. <field name="report_template" ref="account_invoices"/>
  57. <field name="report_name">Invoice_{{ (object.name or '').replace('/','_') }}{{ object.state == 'draft' and '_draft' or '' }}</field>
  58. <field name="lang">{{ object.partner_id.lang }}</field>
  59. <field name="auto_delete" eval="True"/>
  60. </record>
  61. <record id="mail_template_data_payment_receipt" model="mail.template">
  62. <field name="name">Payment: Payment Receipt</field>
  63. <field name="model_id" ref="account.model_account_payment"/>
  64. <field name="subject">{{ object.company_id.name }} Payment Receipt (Ref {{ object.name or 'n/a' }})</field>
  65. <field name="partner_to">{{ object.partner_id.id }}</field>
  66. <field name="description">Sent manually to customer when clicking on 'Send receipt by email' in payment action</field>
  67. <field name="body_html" type="html">
  68. <div style="margin: 0px; padding: 0px;">
  69. <p style="margin: 0px; padding: 0px; font-size: 13px;">
  70. Dear <t t-out="object.partner_id.name or ''">Azure Interior</t><br/><br/>
  71. Thank you for your payment.
  72. Here is your payment receipt <span style="font-weight:bold;" t-out="(object.name or '').replace('/','-') or ''">BNK1-2021-05-0002</span> amounting
  73. to <span style="font-weight:bold;" t-out="format_amount(object.amount, object.currency_id) or ''">$ 10.00</span> from <t t-out="object.company_id.name or ''">YourCompany</t>.
  74. <br/><br/>
  75. Do not hesitate to contact us if you have any questions.
  76. <br/><br/>
  77. Best regards,
  78. <t t-if="not is_html_empty(user.signature)">
  79. <br/><br/>
  80. <t t-out="user.signature or ''">--<br/>Mitchell Admin</t>
  81. </t>
  82. </p>
  83. </div>
  84. </field>
  85. <field name="report_template" ref="account.action_report_payment_receipt"/>
  86. <field name="report_name">{{ (object.name or '').replace('/','-') }}</field>
  87. <field name="lang">{{ object.partner_id.lang }}</field>
  88. <field name="auto_delete" eval="True"/>
  89. </record>
  90. <!-- Credit note template -->
  91. <record id="email_template_edi_credit_note" model="mail.template">
  92. <field name="name">Credit Note: Sending</field>
  93. <field name="model_id" ref="account.model_account_move"/>
  94. <field name="email_from">{{ (object.invoice_user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
  95. <field name="partner_to">{{ object.partner_id.id }}</field>
  96. <field name="subject">{{ object.company_id.name }} Credit Note (Ref {{ object.name or 'n/a' }})</field>
  97. <field name="description">Sent to customers with the credit note in attachment</field>
  98. <field name="body_html" type="html">
  99. <div style="margin: 0px; padding: 0px;">
  100. <p style="margin: 0px; padding: 0px; font-size: 13px;">
  101. Dear
  102. <t t-if="object.partner_id.parent_id">
  103. <t t-out="object.partner_id.name or ''">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>),
  104. </t>
  105. <t t-else="">
  106. <t t-out="object.partner_id.name or ''">Brandon Freeman</t>,
  107. </t>
  108. <br /><br />
  109. Here is your
  110. <t t-if="object.name">
  111. credit note <span style="font-weight:bold;" t-out="object.name or ''">RINV/2021/05/0001</span>
  112. </t>
  113. <t t-else="">
  114. credit note
  115. </t>
  116. <t t-if="object.invoice_origin">
  117. (with reference: <t t-out="object.invoice_origin or ''">SUB003</t>)
  118. </t>
  119. amounting in <span style="font-weight:bold;" t-out="format_amount(object.amount_total, object.currency_id) or ''">$ 143,750.00</span>
  120. from <t t-out="object.company_id.name or ''">YourCompany</t>.
  121. <br /><br />
  122. Do not hesitate to contact us if you have any questions.
  123. <t t-if="not is_html_empty(object.invoice_user_id.signature)">
  124. <br /><br />
  125. <t t-out="object.invoice_user_id.signature or ''">--<br/>Mitchell Admin</t>
  126. </t>
  127. </p>
  128. </div>
  129. </field>
  130. <field name="report_template" ref="account_invoices"/>
  131. <field name="report_name">Credit_note_{{ (object.name or '').replace('/','_') }}{{ object.state == 'draft' and '_draft' or '' }}</field>
  132. <field name="lang">{{ object.partner_id.lang }}</field>
  133. <field name="auto_delete" eval="True"/>
  134. </record>
  135. </data>
  136. </odoo>