Order Upsell fa-line-chart Quotation sent sale.order Quotation sent Sales Order Confirmed sale.order Quotation confirmed Quotation sent 20 crm.team team_id Sales Order Confirmed 21 crm.team team_id Invoice Created 22 crm.team team_id Invoice Confirmed 23 crm.team team_id Sales Order: Send by email ${object.company_id.name} ${object.state in ('draft', 'sent') and (ctx.get('proforma') and 'Proforma' or 'Quotation') or 'Order'} (Ref ${object.name or 'n/a' }) ${(object.user_id.email_formatted or user.email_formatted) | safe} ${object.partner_id.id}

% set doc_name = 'quotation' if object.state in ('draft', 'sent') else 'order' 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: ${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

Do not hesitate to contact us if you have any questions.

${(object.name or '').replace('/','_')} ${object.partner_id.lang}
Sales Order: Confirmation Email ${object.company_id.name} ${(object.get_portal_last_transaction().state == 'pending') and 'Pending Order' or 'Order'} (Ref ${object.name or 'n/a' }) ${(object.user_id.email_formatted or user.email_formatted) | safe} ${object.partner_id.id}

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 questions.

% if object.website_id:
Products Quantity % if object.user_id.has_group('account.group_show_line_subtotals_tax_excluded'): VAT Excl. % else VAT Incl. % endif
% for line in object.order_line: % if not line.is_delivery and line.display_type in ['line_section', 'line_note']:
% if line.display_type == 'line_section': ${line.name} % elif line.display_type == 'line_note': ${line.name} % endif
% elif not line.is_delivery
Product image ${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)} % else ${format_amount(line.price_reduce_taxinc, object.currency_id)} % endif
% endif % endfor
% if object.carrier_id:
Delivery: ${format_amount(object.amount_delivery, object.currency_id)}
SubTotal: ${format_amount(object.amount_untaxed, object.currency_id)}
% else:
SubTotal: ${format_amount(object.amount_untaxed, object.currency_id)}
% endif
Taxes: ${format_amount(object.amount_tax, object.currency_id)}
Total: ${format_amount(object.amount_total, object.currency_id)}
% if object.partner_invoice_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)})
% endif % if object.partner_shipping_id and not object.only_services:

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 ''}
% if object.carrier_id:
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
% endif
% endif % endif
${(object.name or '').replace('/','_')} ${object.partner_id.lang}