Hello${object.partner_id.name and ' ' or ''}${object.partner_id.name or ''},
A new invoice is available for ${object.partner_id.name}:
REFERENCES
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}
You can view the invoice document, download it and pay online using the following link:
View Invoice % if object.company_id.paypal_account and object.type in ('out_invoice', 'in_refund'): <% comp_name = quote(object.company_id.name) inv_number = quote(object.number) paypal_account = quote(object.company_id.paypal_account) inv_amount = quote(str(object.amount_total)) cur_name = quote(object.currency_id.name) 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) %>It is also possible to directly pay with Paypal:
% endifIf you have any question, do not hesitate to contact us.
Thank you for choosing ${object.company_id.name or 'us'}!