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}