From 30bbdc2cf1c029cd374d00cee8e8143fd6afb264 Mon Sep 17 00:00:00 2001 From: ced <> Date: Wed, 12 Dec 2007 13:24:34 +0000 Subject: [PATCH] Use new reportLang function in invoice report bzr revid: ced-e6ecace759eae434b6f2e741542f723f2696a880 --- addons/account/report/invoice.rml | 58 +++++++++++++++---------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml index b00855ae6c1..ae5f50054d0 100644 --- a/addons/account/report/invoice.rml +++ b/addons/account/report/invoice.rml @@ -88,13 +88,13 @@ - + - - - - - + + + + + @@ -134,12 +134,12 @@ - Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]] - PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma') or removeParentNode('para')) and '' ]] - Draft Invoice [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]] - Canceled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] - Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] - Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] + Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]] + PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma') or removeParentNode('para')) and '' ]] + Draft Invoice [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]] + Canceled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] + Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] + Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] [[ o.number ]] @@ -147,16 +147,16 @@ - + Document : [[o.name]] - + Invoice Date: [[o.date_invoice]] - Customer Ref: [[ o.address_invoice_id.partner_id.ref or '/' ]] + Customer Ref: [[ o.address_invoice_id.partner_id.ref or '/' ]] @@ -183,7 +183,7 @@
- [[repeatIn(o.invoice_line,'l') ]] + [[repeatIn(o.invoice_line,'l') ]] @@ -193,23 +193,23 @@ [[ ', '.join([lt.name for lt in l.invoice_line_tax_id]) ]] - [[ '%.2f' % l.quantity ]] [[l.uos_id and l.uos_id.name or '' ]] + [[ formatLang(l.quantity) ]] [[l.uos_id and l.uos_id.name or '' ]] - [[ '%.2f' % l.price_unit ]] + [[ formatLang(l.price_unit) ]] - [[ l.discount and '%.2f' % (l.discount) or '' ]] + [[ l.discount and formatLang (l.discount) or '' ]] - [[ '%.2f' %l.price_subtotal ]] [[o.currency_id.code ]] + [[ formatLang(l.price_subtotal) ]] [[o.currency_id.code ]] - [[ repeatIn((l.note and l.note.splitlines()) or [], 'note') ]] + [[ repeatIn((l.note and l.note.splitlines()) or [], 'note') ]] [[ note or removeParentNode('table') ]] @@ -240,10 +240,10 @@ [[ repeatIn(o.tax_line,'t') ]] [[ t.name ]] - [[ '%.2f' % t.base ]] + [[ formatLang(t.base) ]] - [[ '%.2f' % t.amount]] + [[ formatLang(t.amount)]] @@ -255,7 +255,7 @@ Total (excl. taxes): - [[ '%.2f' % o.amount_untaxed ]] [[o.currency_id.code ]] + [[ formatLang(o.amount_untaxed) ]] [[o.currency_id.code ]] @@ -263,7 +263,7 @@ Taxes: - [[ '%.2f' % o.amount_tax ]] [[o.currency_id.code ]] + [[ formatLang(o.amount_tax) ]] [[o.currency_id.code ]] @@ -271,7 +271,7 @@ Total (incl. taxes): - [[ '%.2f' % o.amount_total ]] [[o.currency_id.code ]] + [[ formatLang(o.amount_total) ]] [[o.currency_id.code ]] @@ -281,11 +281,11 @@ - [[ format(o.comment or '') ]] - + [[ format(o.comment or '') ]] + - [[ format((o.payment_term and o.payment_term.note) or '') ]] + [[ format((o.payment_term and o.payment_term.note) or '') ]]