![](/@@/translation-newline)
Hello${object.address_invoice_id.name and ' ' or ''}${object.address_invoice_id.name or ''},
![](/@@/translation-newline)
A new invoice is available for ${object.partner_id.name}:
| Invoice number: *${object.number}*
| Invoice total: *${object.amount_total} ${object.currency_id.name}*
| Invoice date: ${object.date_invoice}
% if object.origin:
| Order reference: ${object.origin}
% endif
| Your contact: ${object.user_id.name} ${object.user_id.user_email and '<%s>'%(object.user_id.user_email) or ''}
![](/@@/translation-newline)
You can view the invoice document, download it and pay online using the following link:
${ctx.get('edi_web_url_view') or 'n/a'}
![](/@@/translation-newline)
% if object.company_id.paypal_account and object.type in ('out_invoice', 'in_refund'):
![](/@@/translation-newline)
<%
![](/@@/translation-newline)
comp_name = quote(object.company_id.name)
![](/@@/translation-newline)
inv_number = quote(object.number)
![](/@@/translation-newline)
paypal_account = quote(object.company_id.paypal_account)
![](/@@/translation-newline)
inv_amount = quote(str(object.amount_total))
![](/@@/translation-newline)
cur_name = quote(object.currency_id.name)
![](/@@/translation-newline)
paypal_url = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=%s&item_name=%s%%20Invoice%%20%s"\
"&invoice=%s&amount=%s¤cy_code=%s&button_subtype=services&no_note=1&bn=OpenERP_Invoice_PayNow_%s" % \
(paypal_account,comp_name,inv_number,inv_number,inv_amount,cur_name,cur_name)
![](/@@/translation-newline)
%>
![](/@@/translation-newline)
It is also possible to directly pay with Paypal:
${paypal_url}
![](/@@/translation-newline)
% endif
![](/@@/translation-newline)
If you have any question, do not hesitate to contact us.
![](/@@/translation-newline)
Thank you for choosing ${object.company_id.name}!
![](/@@/translation-newline)
--
![](/@@/translation-newline)
${object.user_id.name} ${object.user_id.user_email and '<%s>'%(object.user_id.user_email) or ''}
![](/@@/translation-newline)
${object.company_id.name}
![](/@@/translation-newline)
% if object.company_id.street:
![](/@@/translation-newline)
${object.company_id.street or ''}
![](/@@/translation-newline)
% endif
![](/@@/translation-newline)
% if object.company_id.street2:
![](/@@/translation-newline)
${object.company_id.street2}
![](/@@/translation-newline)
% endif
![](/@@/translation-newline)
% if object.company_id.city or object.company_id.zip:
![](/@@/translation-newline)
${object.company_id.zip or ''} ${object.company_id.city or ''}
![](/@@/translation-newline)
% endif
![](/@@/translation-newline)
% if object.company_id.country_id:
![](/@@/translation-newline)
${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}
![](/@@/translation-newline)
% endif
![](/@@/translation-newline)
% if object.company_id.phone:
![](/@@/translation-newline)
Phone: ${object.company_id.phone}
![](/@@/translation-newline)
% endif
![](/@@/translation-newline)
% if object.company_id.website:
![](/@@/translation-newline)
${object.company_id.website or ''}
![](/@@/translation-newline)
% endif