summaryrefslogtreecommitdiff
path: root/addons/l10n_be_invoice_bba/data/mail_template_data.xml
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2020-05-29 15:56:07 +0000
committerJosse Colpaert <jco@odoo.com>2020-06-08 14:05:36 +0000
commit4bbc666cae6939b7725b1e4e6d1c387a07ce0854 (patch)
tree22b7a22204a75f795f1947a6d622c1592df0ec3d /addons/l10n_be_invoice_bba/data/mail_template_data.xml
parent85f3c08039b687b2a32f7a1b970bc2aa84d5fe10 (diff)
[IMP] account: put payment reference in invoice mail
Before, only when you had installed the Belgian structured communication module, when you sent an invoice by mail then only the structured communication would be added in the mail. But it should be visible all the time when you have a payment reference. closes odoo/odoo#52618 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/l10n_be_invoice_bba/data/mail_template_data.xml')
-rw-r--r--addons/l10n_be_invoice_bba/data/mail_template_data.xml39
1 files changed, 0 insertions, 39 deletions
diff --git a/addons/l10n_be_invoice_bba/data/mail_template_data.xml b/addons/l10n_be_invoice_bba/data/mail_template_data.xml
deleted file mode 100644
index 1599a31d186..00000000000
--- a/addons/l10n_be_invoice_bba/data/mail_template_data.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<odoo>
- <data noupdate="1">
- <record id="account.email_template_edi_invoice" model="mail.template">
- <field name="body_html" type="html">
-<div style="margin: 0px; padding: 0px;">
- <p style="margin: 0px; padding: 0px; font-size: 13px;">
- Dear ${object.partner_id.name}
- % if object.partner_id.parent_id:
- (${object.partner_id.parent_id.name})
- % endif
- <br /><br />
- Here is, in attachment, your
- % if object.name:
- invoice <strong>${object.name}</strong>
- % else:
- invoice
- % endif
- % if object.invoice_origin:
- (with reference: ${object.invoice_origin} )
- % endif
- amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong>
- from ${object.company_id.name}.
- % if object.payment_state=='paid':
- This invoice is already paid.
- % else:
- Please remit payment at your earliest convenience.
- % if object.invoice_reference_type=='structured' and object.ref:
- Please use the following communication for your payment: <strong>${object.ref}</strong>.
- % endif
- % endif
- <br /><br />
- Do not hesitate to contact us if you have any questions.
- </p>
-</div>
- </field>
- </record>
- </data>
-</odoo>