diff --git a/addons/sale/report/order.rml b/addons/sale/report/order.rml index 54a0dc6c527..f87a9585123 100644 --- a/addons/sale/report/order.rml +++ b/addons/sale/report/order.rml @@ -134,24 +134,23 @@ - [[ repeatIn(objects,'o') ]] - [[ setLang(o.partner_id.lang) ]] + [[ repeatIn(objects,'o') ]][[ setLang(o.partner_id.lang) ]] Shipping address : - [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]] - [[ o.partner_shipping_id.title or '' ]] [[ o.partner_shipping_id.name ]] + [[ o.partner_id.title or '' ]][[ o.partner_id.name ]] + [[ o.partner_shipping_id.title or '' ]][[ o.partner_shipping_id.name ]] [[ o.partner_shipping_id.street ]] - [[ o.partner_shipping_id.street2 or '' ]] - [[ o.partner_shipping_id.city or '' ]] [[ o.partner_shipping_id.zip or '' ]] - [[ o.partner_shipping_id.state_id and o.partner_shipping_id.state_id.name or '' ]] [[ o.partner_shipping_id.country_id and o.partner_shipping_id.country_id.name or '' ]] + [[ o.partner_shipping_id.street2 or '' ]] + [[ o.partner_shipping_id.city or '' ]][[ o.partner_shipping_id.zip or '' ]] + [[ o.partner_shipping_id.state_id and o.partner_shipping_id.state_id.name or '' ]][[ o.partner_shipping_id.country_id and o.partner_shipping_id.country_id.name or '' ]] - Invoice address :[[ o.partner_id.property_payment_term and o.partner_id.property_payment_term.name or '' ]] - [[ o.partner_invoice_id.street ]] [[ o.partner_invoice_id.street2 and (', %s' % o.partner_invoice_id.street2 or '') ]] - [[ o.partner_invoice_id.zip or '' ]] [[ o.partner_invoice_id.city or '' ]] [[ o.partner_invoice_id.country_id and (', %s' % (o.partner_invoice_id.country_id and o.partner_invoice_id.country_id.name or '')) ]] + Invoice address :[[ o.partner_id.property_payment_term.name ]] + [[ o.partner_invoice_id.street ]][[ o.partner_invoice_id.street2 and (', %s' % o.partner_invoice_id.street2 or '') ]] + [[ o.partner_invoice_id.zip or '' ]][[ o.partner_invoice_id.city or '' ]][[ o.partner_invoice_id.country_id and (', %s' % (o.partner_invoice_id.country_id and o.partner_invoice_id.country_id.name or '')) ]] @@ -159,17 +158,17 @@ - [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]] - [[ o.partner_order_id.title or '' ]] [[ o.partner_order_id.name ]] + [[ o.partner_id.title or '' ]][[ o.partner_id.name ]] + [[ o.partner_order_id.title or '' ]][[ o.partner_order_id.name ]] [[ o.partner_order_id.street ]] [[ o.partner_order_id.street2 or '' ]] - [[ o.partner_order_id.zip or '' ]] [[ o.partner_order_id.city or '' ]] - [[ o.partner_order_id.state_id and o.partner_order_id.state_id.name or '' ]] [[ o.partner_order_id.country_id and o.partner_order_id.country_id.name or '' ]] + [[ o.partner_order_id.zip or '' ]][[ o.partner_order_id.city or '' ]] + [[ o.partner_order_id.state_id and o.partner_order_id.state_id.name or '' ]][[ o.partner_order_id.country_id and o.partner_order_id.country_id.name or '' ]] Tel. : [[ o.partner_order_id.phone or removeParentNode('para') ]] - Fax : [[ o.partner_order_id.fax or removeParentNode('para') ]] + Fax : [[ o.partner_order_id.fax or removeParentNode('para') ]] TVA : [[ o.partner_id.vat or removeParentNode('para') ]] @@ -191,7 +190,7 @@ Your Reference - Date + Date Ordered Our Salesman @@ -204,7 +203,7 @@ - [[ o.client_order_ref or '' ]] + [[ o.name ]] [[ o.date_order ]] @@ -213,7 +212,7 @@ [[ o.user_id.name ]] - [[ o.partner_id.property_payment_term['name'] or o.payment_term and o.payment_term.name or '' ]] + [[ o.partner_id and o.partner_id.property_payment_term and o.partner_id.property_payment_term['name'] or '' ]] @@ -244,28 +243,28 @@
[[ repeatIn(o.order_line,'line') ]] - + [[ line.name ]] - [[ ', '.join(map(lambda x: x.name, line.tax_id)) ]] + [[ ', '.join(map(lambda x: x.name, line.tax_id)) or '0.00' ]] - [[ line.product_uos and line.product_uos_qty or line.product_uom_qty ]] + [[ line.product_uos and line.product_uos_qty or line.product_uom_qty or '0.00']] [[ line.product_uos and line.product_uos.name or line.product_uom.name ]] - [[ line.price_unit ]] + [[ line.price_unit or '0.00' ]] - [[ line.discount and str(line.discount) or '' ]] + [[ line.discount and str(line.discount) or '0.00' ]] - [[ line.price_subtotal ]] + [[ line.price_subtotal or '0.00' ]] @@ -316,7 +315,7 @@ Net Total : - [[ o.amount_untaxed ]] + [[ o.amount_untaxed or '0.00' ]] [[ o.pricelist_id.currency_id.name ]] @@ -332,7 +331,7 @@ Taxes : - [[ o.amount_tax ]] + [[ o.amount_tax or '0.00' ]] [[ o.pricelist_id.currency_id.name ]] @@ -348,7 +347,7 @@ Total : - [[ o.amount_total ]] + [[ o.amount_total or '0.00' ]] [[ o.pricelist_id.currency_id.name ]] @@ -358,7 +357,7 @@ - + [[ format(o.note or '') ]] @@ -374,4 +373,4 @@ - + \ No newline at end of file