diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml index 1cd994c56f7..3fadde3ab3d 100644 --- a/addons/account/report/invoice.rml +++ b/addons/account/report/invoice.rml @@ -2,7 +2,7 @@ @@ -10,91 +10,225 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - + + + - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + @@ -102,190 +236,318 @@ + + + + + + + + + + + + + + + + + + + + + + + + + - [[ repeatIn(objects,'o') ]] - [[ setLang(o.partner_id.lang) ]] - + [[ repeatIn(objects,'o') ]] + [[ setLang(o.partner_id.lang) ]][[ setLang(o.partner_id.lang) ]] + - + - [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]] - [[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]] - [[ o.address_invoice_id.street ]] - [[ o.address_invoice_id.street2 or '' ]] - [[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]] - [[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]] - [[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]] - + [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]] + [[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]] + [[ o.address_invoice_id.street ]] + [[ o.address_invoice_id.street2 or '' ]] + [[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]] + [[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]] + [[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]] + - Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]] - Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]] - VAT : [[ o.partner_id.vat or removeParentNode('para') ]] + Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]] + Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]] + VAT : [[ o.partner_id.vat or removeParentNode('para') ]] - + 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 ]] + - 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 ]] - - - - - - Document - : - [[o.name]] - - - Invoice Date: - [[o.date_invoice]] - - Partner Code: [[ o.address_invoice_id.partner_id.ref or removeParentNode('para') ]] - - - - + - Description + + Document + - Taxes + Invoice Date - Quantity + Partner Code + + + + + + + + [[ o.name ]] + - Unit Price + [[ o.date_invoice ]] - Disc. (%) + [[ o.address_invoice_id.partner_id.ref or removeParentNode('para') ]] + + + + + + + + + + Description - Price + Taxes + + + Quantity + + + Unit Price + + + Disc. (%) + + + Price
- [[repeatIn(o.invoice_line,'l') ]] - + [[ repeatIn(o.invoice_line,'l') ]] + - [[ l.name ]] + [[ l.name ]] - [[ ', '.join([lt.name for lt in l.invoice_line_tax_id]) ]] + [[ ', '.join([lt.name for lt in l.invoice_line_tax_id]) ]] - [[ formatLang(l.quantity) ]] [[l.uos_id and l.uos_id.name or '' ]] + [[ formatLang(l.quantity) ]] - [[ formatLang(l.price_unit) ]] + [[ (l.uos_id and l.uos_id.name) or '' ]] - [[ l.discount and formatLang (l.discount) or '' ]] + [[ formatLang(l.price_unit) ]] - [[ formatLang(l.price_subtotal) ]] [[o.currency_id.code ]] + [[ l.discount and formatLang (l.discount) or '' ]] + + + [[ 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') ]] + [[ note or removeParentNode('table') ]]
- - - - + - + - Tax + + + - Base - - - Amount + + + + + + + + + + - [[ repeatIn(o.tax_line,'t') ]] [[ t.name ]] + Total (excl. taxes): - [[ formatLang(t.base) ]] + [[ formatLang(o.amount_untaxed) ]] - [[ formatLang(t.amount)]] + [[ o.currency_id.code ]] + + + + + + + + + + Taxes: + + + [[ formatLang(o.amount_tax) ]] + + + [[ o.currency_id.code ]] + + + + + + + + + + Total (inclu. taxes): + + + [[ formatLang(o.amount_total) ]] + + + [[ o.currency_id.code ]] + + + + + + + - + [[ o.amount_tax or removeParentNode('blockTable') ]] + - Total (excl. taxes): + Tax - [[ formatLang(o.amount_untaxed) ]] [[o.currency_id.code ]] - - - - - Taxes: + Base - [[ formatLang(o.amount_tax) ]] [[o.currency_id.code ]] - - - - - Total (incl. taxes): - - - [[ formatLang(o.amount_total) ]] [[o.currency_id.code ]] + Amount - + + + + + + + [[ repeatIn(o.tax_line,'t') ]] + + + + [[ t.name ]] + + + [[ formatLang(t.base) ]] + + + [[ formatLang(t.amount) or 0.00 ]] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - [[ 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 '') ]]
-