diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml
index 105cd650ac1..ee008eb5e31 100644
--- a/addons/mail/data/mail_data.xml
+++ b/addons/mail/data/mail_data.xml
@@ -262,13 +262,15 @@
% set doc_name = 'quotation' if object.state in ('draft', 'sent') else 'order'
- % if object.partner_id.parent_id:
- Dear ${object.partner_id.name} (${object.partner_id.parent_id.name}),
+ Hello,
+
+ Your
+ % if ctx.get('proforma'):
+ Pro forma invoice for ${doc_name} ${object.name}
+ % if object.origin:
+ (with reference: ${object.origin} )
+ % endif
+ amounting in ${format_amount(object.amount_total, object.pricelist_id.currency_id)} is available.
% else:
- Dear ${object.partner_id.name},
+ ${doc_name} ${object.name}
+ % if object.origin:
+ (with reference: ${object.origin} )
+ % endif
+ amounting in ${format_amount(object.amount_total, object.pricelist_id.currency_id)} is ready for review.
% endif
-
- Here is
- % if ctx.get('proforma')
- in attachment your pro-forma invoice
- % else
- the ${doc_name} ${object.name}
- % endif
- % if object.origin:
- (with reference: ${object.origin} )
- % endif
- amounting in ${format_amount(object.amount_total, object.pricelist_id.currency_id)}
- from ${object.company_id.name}.
-
+
Do not hesitate to contact us if you have any question.
+
+
+ Hello,
+
+ % set transaction = object.get_portal_last_transaction()
+ Your order ${object.name} amounting in ${format_amount(object.amount_total, object.currency_id)}
+ % if object.state == 'sale' or (transaction and transaction.state in ('done', 'authorized')) :
+ has been confirmed.
+ Thank you for your trust!
+ % elif transaction and transaction.state == 'pending' :
+ is pending. It will be confirmed when the payment is received.
+ % if object.reference:
+ Your payment reference is ${object.reference}.
+ % endif
+ % endif
+
+ Do not hesitate to contact us if you have any question.
+
+ % if object.website_id:
+
| Products | ++ | Quantity | +Price | +|||||||||
| ${line.name} | + % elif line.display_type == 'line_note': +${line.name} | + % else: +
+ |
+ ${line.product_id.name} | +${line.product_uom_qty} | + % if object.user_id.has_group('account.group_show_line_subtotals_tax_excluded'): +${format_amount(line.price_reduce_taxexcl, object.currency_id)} | + % endif + % if object.user_id.has_group('account.group_show_line_subtotals_tax_included'): +${format_amount(line.price_reduce_taxinc, object.currency_id)} | + % endif + % endif +||||||
| Delivery: | +${format_amount(object.amount_delivery, object.currency_id)} | +
| SubTotal: | +${format_amount(object.amount_untaxed, object.currency_id)} | +
| SubTotal: | +${format_amount(object.amount_untaxed, object.currency_id)} | +
| Taxes: | +${format_amount(object.amount_tax, object.currency_id)} | +
| Total: | +${format_amount(object.amount_total, object.currency_id)} | +
| + Bill to: + ${object.partner_invoice_id.street or ''} + ${object.partner_invoice_id.city or ''} + ${object.partner_invoice_id.state_id.name or ''} + ${object.partner_invoice_id.zip or ''} + ${object.partner_invoice_id.country_id.name or ''} + | +
| + Payment Method: + % if transaction.payment_token_id: + ${transaction.payment_token_id.name} + % else: + ${transaction.acquirer_id.name} + % endif + (${format_amount(transaction.amount, object.currency_id)}) + | +
|
+ + Ship to: + ${object.partner_shipping_id.street or ''} + ${object.partner_shipping_id.city or ''} + ${object.partner_shipping_id.state_id.name or ''} + ${object.partner_shipping_id.zip or ''} + ${object.partner_shipping_id.country_id.name or ''} + |
+
| + Shipping Method: + ${object.carrier_id.name} + % if object.carrier_id.fixed_price == 0.0: + (Free) + % else: + (${format_amount(object.carrier_id.fixed_price, object.currency_id)}) + % endif + | +