From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/account/data/mail_template_data.xml | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 addons/account/data/mail_template_data.xml (limited to 'addons/account/data/mail_template_data.xml') diff --git a/addons/account/data/mail_template_data.xml b/addons/account/data/mail_template_data.xml new file mode 100644 index 00000000..1aa788e3 --- /dev/null +++ b/addons/account/data/mail_template_data.xml @@ -0,0 +1,59 @@ + + + + + + + + Invoice: Send by email + + ${(object.invoice_user_id.email_formatted or user.email_formatted) |safe} + ${object.partner_id.id} + ${object.company_id.name} Invoice (Ref ${object.name or 'n/a'}) + +
+

+ Dear + % if object.partner_id.parent_id: + ${object.partner_id.name} (${object.partner_id.parent_id.name}), + % else: + ${object.partner_id.name}, + % endif +

+ Here is your + % if object.name: + invoice ${object.name} + % else: + invoice + %endif + % if object.invoice_origin: + (with reference: ${object.invoice_origin}) + % endif + amounting in ${format_amount(object.amount_total, object.currency_id)} + from ${object.company_id.name}. + % if object.payment_state in ('paid', 'in_payment'): + This invoice is already paid. + % else: + Please remit payment at your earliest convenience. + % if object.payment_reference: +

+ Please use the following communication for your payment: ${object.payment_reference}. + % endif + % endif +

+ Do not hesitate to contact us if you have any questions. + % if object.invoice_user_id.signature: +
+ ${object.invoice_user_id.signature | safe} + % endif +

+
+
+ + Invoice_${(object.name or '').replace('/','_')}${object.state == 'draft' and '_draft' or ''} + ${object.partner_id.lang} + +
+
+
-- cgit v1.2.3