diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml index 50d6e35a28c..c0f59b19534 100644 --- a/addons/account/report/invoice.rml +++ b/addons/account/report/invoice.rml @@ -1,283 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[ repeatIn(objects,'o') ]] - [[ 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 '' ]] - - - - 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' or removeParentNode('font')) and '' ]] - Refund [[ (o.type=='out_refund' or removeParentNode('font')) and '' ]] - Supplier Refund [[ (o.type=='in_refund' or removeParentNode('font')) and '' ]] - Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('font')) and '' ]] - [[ o.number ]] - - - - - - Document - : - [[o.name]] - - - Invoice Date: - [[o.date_invoice]] - - Customer Ref: [[ o.address_invoice_id.partner_id.ref or '/' ]] - - - - - - - Description - - - Taxes - - - Quantity - - - Unit Price - - - Disc. (%) - - - Price - - - -
- [[repeatIn(o.invoice_line,'l') ]] - - - - [[ l.name ]] - - - [[ ', '.join([lt.name for lt in l.invoice_line_tax_id]) ]] - - - [[ '%.2f' % l.quantity ]] [[l.uos_id and l.uos_id.name or '' ]] - - - [[ '%.2f' % l.price_unit ]] - - - [[ l.discount and '%.2f' % (l.discount) or '' ]] - - - [[ '%.2f' %l.price_subtotal ]] [[o.currency_id.code ]] - - - - - - - [[ repeatIn((l.note and l.note.splitlines()) or [], 'note') ]] - - - [[ note or removeParentNode('table') ]] - - - -
- - - - - - - - - - Tax - - - Base - - - Amount - - - - - [[ repeatIn(o.tax_line,'t') ]] [[ t.name ]] - - - [[ '%.2f' % t.base ]] - - - [[ '%.2f' % t.amount]] - - - - - - - - - Total (excl. taxes): - - - [[ '%.2f' % o.amount_untaxed ]] [[o.currency_id.code ]] - - - - - Taxes: - - - [[ '%.2f' % o.amount_tax ]] [[o.currency_id.code ]] - - - - - Total (incl. taxes): - - - [[ '%.2f' % o.amount_total ]] [[o.currency_id.code ]] - - - - - - - - - - [[ o.comment or '' ]] [[ setTag('para','xpre') ]] - - - - [[ (o.payment_term and o.payment_term.note) or '' ]] [[ setTag('para','xpre') ]] - - - - - - - - - - - - -
-
+[[ repeatIn(objects,'o') ]][[ 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 '' ]] 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' or removeParentNode('font')) and '' ]]Refund [[ (o.type=='out_refund' or removeParentNode('font')) and '' ]]Supplier Refund [[ (o.type=='in_refund' or removeParentNode('font')) and '' ]]Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('font')) and '' ]][[ o.number ]] Document:[[o.name]]Invoice Date: [[o.date_invoice]]Customer Ref: [[ o.address_invoice_id.partner_id.ref or '/' ]] DescriptionTaxesQuantityUnit PriceDisc. (%)Price
[[repeatIn(o.invoice_line,'l') ]][[ l.name ]][[ ', '.join([lt.name for lt in l.invoice_line_tax_id]) ]][[ '%.2f' % l.quantity ]] [[l.uos_id and l.uos_id.name or '' ]][[ '%.2f' % l.price_unit ]][[ l.discount and '%.2f' % (l.discount) or '' ]] [[ '%.2f' %l.price_subtotal ]] [[o.currency_id.code ]][[ repeatIn((l.note and l.note.splitlines()) or [], 'note') ]][[ note or removeParentNode('table') ]]
TaxBaseAmount[[ repeatIn(o.tax_line,'t') ]] [[ t.name ]][[ '%.2f' % t.base ]][[ '%.2f' % t.amount]]Total (excl. taxes):[[ '%.2f' % o.amount_untaxed ]] [[o.currency_id.code ]]Taxes:[[ '%.2f' % o.amount_tax ]] [[o.currency_id.code ]]Total (incl. taxes):[[ '%.2f' % o.amount_total ]] [[o.currency_id.code ]] [[ format(o.comment or '') ]] [[ format((o.payment_term and o.payment_term.note) or '') ]]