%for inv in objects : <% setLang(inv.partner_id.lang) %>
%if inv.address_invoice_id.country_id : %endif %if inv.address_invoice_id.phone : %endif %if inv.address_invoice_id.fax : %endif %if inv.address_invoice_id.email : %endif %if inv.partner_id.vat : %endif
${inv.partner_id.title or ''|entity} ${inv.partner_id.name |entity}
${inv.address_invoice_id.street or ''|entity}
${inv.address_invoice_id.street2 or ''|entity}
${inv.address_invoice_id.zip or ''|entity} ${inv.address_invoice_id.city or ''|entity}
${inv.address_invoice_id.country_id.name or ''|entity}
${_("Tel") |entity}: ${inv.address_invoice_id.phone|entity}
${_("Fax") |entity}: ${inv.address_invoice_id.fax|entity}
${_("E-mail") |entity}: ${inv.address_invoice_id.email|entity}
${_("VAT") |entity}: ${inv.partner_id.vat|entity}

%if inv.type == 'out_invoice' : ${_("Invoice") |entity} ${inv.number or ''|entity} %elif inv.type == 'in_invoice' : ${_("Supplier Invoice") |entity} ${inv.number or ''|entity} %elif inv.type == 'out_refund' : ${_("Refund") |entity} ${inv.number or ''|entity} %elif inv.type == 'in_refund' : ${_("Supplier Refund") |entity} ${inv.number or ''|entity} %endif

${_("Document") |entity}${_("Invoice Date") |entity}${_("Partner Ref.") |entity}
${inv.name}${formatLang(inv.date_invoice, date=True)|entity} 


%for line in inv.invoice_line : %if line.note : %endif %endfor
${_("Description") |entity}${_("Taxes") |entity}${_("QTY") |entity}${_("Unit Price") |entity}${_("Disc.(%)") |entity}${_("Price") |entity}
${line.name|entity}${ ', '.join([ tax.name or '' for tax in line.invoice_line_tax_id ])|entity}${line.quantity}${formatLang(line.price_unit)}${line.discount or 0.00}${formatLang(line.price_subtotal)}
${line.note |entity}
Net Total:${formatLang(inv.amount_untaxed)}
Taxes:${formatLang(inv.amount_tax)}
Total:${formatLang(inv.amount_total)}
%if inv.tax_line : %for t in inv.tax_line : %endfor %endif
Tax${_("Base") |entity}${_("Amount") |entity}
${ t.name|entity } ${ t.base|entity} ${ formatLang(t.amount) }
${_("Total") |entity} ${ formatLang(inv.amount_tax) }
%endfor