Invoice - Send by Email ${(object.user_id.email and '%s <%s>' % (object.user_id.name, object.user_id.email) or '')|safe} ${object.company_id.name} Invoice (Ref ${object.number or 'n/a'}) ${object.partner_id.id} Invoice_${(object.number or '').replace('/','_')}_${object.state == 'draft' and 'draft' or ''} ${object.partner_id.lang} Dear ${object.partner_id.name} % set access_action = object.get_access_action() % set access_url = access_action['type'] == 'ir.actions.act_url' and access_action['url'] or '/report/pdf/account.report_invoice/' + str(object.id) % set is_online = access_action and access_action['type'] == 'ir.actions.act_url' % if object.partner_id.parent_id: (${object.partner_id.parent_id.name}) % endif ,

Here is your invoice ${object.number} % if object.origin: (with reference: ${object.origin} ) % endif amounting in ${object.amount_total} ${object.currency_id.name} from ${object.company_id.name}.

% if is_online:

View Invoice
% endif

% if object.state=='paid':

This invoice is already paid.

% else:

Please remit payment at your earliest convenience.

% endif

Thank you,

% if object.user_id and object.user_id.signature: ${object.user_id.signature | safe} % endif ]]>
Invoice Notification Email ${object.subject} % set record = ctx.get('record') % set company = record and record.company_id or user.company_id
Invoice ${object.record_name} ${company.name}
${object.body | safe}
${company.name}
${company.phone or ''}
% if company.email: ${company.email}
% endif % if company.website: ${company.website} % endif
Powered by Odoo.
]]>