From 96da10de6cc20486b3e37fd4c6c88eb61cbb919c Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 17 Jul 2016 23:23:12 +0200 Subject: [PATCH] [IMP] account: improved email template for invoices --- addons/account/data/invoice_action_data.xml | 108 +++++++++++++++++--- 1 file changed, 96 insertions(+), 12 deletions(-) diff --git a/addons/account/data/invoice_action_data.xml b/addons/account/data/invoice_action_data.xml index 5b7a5ea3c5f..42650f07380 100644 --- a/addons/account/data/invoice_action_data.xml +++ b/addons/account/data/invoice_action_data.xml @@ -17,17 +17,14 @@ ${object.partner_id.lang} Dear -% if object.partner_id.is_company and object.child_ids: - ${object.partner_id.child_ids[0].name} -% else : - ${object.partner_id.name} +

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

-

Thank you for your inquiry. Here is your invoice ${object.number} +

Here is your invoice ${object.number} % if object.origin: (with reference: ${object.origin} ) % endif @@ -35,15 +32,102 @@ amounting in ${object.amount_total} ${object.currency_id.name} from ${object.company_id.name}.

-

- ${access_name} -

-

If you have any question, do not hesitate to contact us.

-

Best regards,

+

+
+ View Invoice +
+

+ +% if object.state=='paid': +

This invoice is already paid.

+% else: +

Please remit payment at your earliest convenience.

+% endif + +

Thank you,

% if object.user_id and object.user_id.signature: ${object.user_id.signature | safe} % endif ]]>
+ + + + Invoice Notification Email + ${object.subject} + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + Invoice ${object.record_name} + + + ${user.company_id.name} +
+
+ + + + +
+ ${object.body | safe} +
+
+ + + + + +
+ ${user.company_id.name}
+ ${user.company_id.phone or ''} +
+ % if user.company_id.email: + ${user.company_id.email}
+ % endif + % if user.company_id.website: + + ${user.company_id.website} + + % endif +
+
+ Powered by Odoo. +
+ + + ]]>
+
+