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.user_id.email_formatted |safe} ${object.partner_id.id} ${object.company_id.name} ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} (Ref ${object.name or 'n/a' })

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

${(object.name or '').replace('/','_')}${object.state == 'draft' and '_draft' or ''} ${object.partner_id.lang}