diff --git a/addons/sale/report/shipping.rml b/addons/sale/report/shipping.rml index d169e3685ab..ab4cb0b585f 100644 --- a/addons/sale/report/shipping.rml +++ b/addons/sale/report/shipping.rml @@ -10,11 +10,11 @@ - + - + @@ -31,7 +31,7 @@ - + @@ -48,15 +48,15 @@ - + - - - - + + + + - + @@ -68,6 +68,9 @@ + + + @@ -97,6 +100,7 @@ + @@ -104,35 +108,38 @@ - [[ not(o.sale_id) and 'Error, no sale order attached to this picking !' or '' ]] - + [[ not(o.sale_id) and 'Error, no sale order attached to this picking !' or '' ]] + Invoiced to - [[ o.sale_id.partner_invoice_id.name ]] - [[ o.sale_id.partner_invoice_id.street ]] - [[ o.sale_id.partner_invoice_id.zip ]] - [[ o.sale_id.partner_invoice_id.city ]] - [[ o.sale_id.partner_invoice_id.country_id and o.sale_id.partner_invoice_id.country_id.name ]] + [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.name or '']] + [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.street or '']] + [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.zip or '']] + [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.city or '' ]] + [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.country_id and o.sale_id.partner_invoice_id.country_id.name or '']] Shipped to - [[ o.sale_id.partner_shipping_id.name ]] - [[ o.sale_id.partner_shipping_id.street ]] - [[ o.sale_id.partner_shipping_id.zip ]] - [[ o.sale_id.partner_shipping_id.city ]] - [[ o.sale_id.partner_shipping_id.country_id and o.sale_id.partner_shipping_id.country_id.name ]] + [[ o.sale_id and o.sale_id.partner_shipping_id and o.sale_id.partner_shipping_id.name or '']] + [[ o.sale_id and o.sale_id.partner_shipping_id and o.sale_id.partner_shipping_id.street or '']] + [[ o.sale_id and o.sale_id.partner_shipping_id and o.sale_id.partner_shipping_id.zip or '']] + [[ o.sale_id and o.sale_id.partner_shipping_id and o.sale_id.partner_shipping_id.city or '']] + [[ o.sale_id and o.sale_id.partner_shipping_id and o.sale_id.partner_shipping_id.country_id and o.sale_id.partner_shipping_id.country_id.name or '']] - Delivery order [[ o.sale_id.name ]] + Delivery order [[ o.sale_id and o.sale_id.name ]] - + + + + Order Ref. @@ -148,16 +155,16 @@ - + - [[ o.sale_id.name ]] + [[ o.sale_id and o.sale_id.name ]] - [[ o.sale_id.date_order ]] + [[ o.sale_id and o.sale_id.date_order or '']] - [[ o.date ]] + [[ o.min_date ]] [[ o.carrier_id and o.carrier_id.name or '' ]] @@ -167,7 +174,7 @@ - + Reference @@ -176,7 +183,7 @@ Designation - Quantity + Quantity S.U. @@ -184,46 +191,26 @@
- [[ repeatIn(o.move_lines, 'line') ]] - + [[ repeatIn(o.move_lines, 'line') ]] + - [[ line.product_id.code ]] + [[line.product_id.code ]] - [[ line.product_id.name ]] + [[ line.product_id and line.product_id.name or '']] - [[ line.product_qty ]] + [[ line.product_qty ]] - [[ line.product_uom.name ]] - - - - - [[ line.product_id.ean13 ]] - - - Logistical unit : [[ line.product_packaging.qty ]] - [[ line.tracking_id and 'Packaging : %d package of %d P' % (1, line.product_packaging.qty) or '' ]] - [[ line.tracking_id and 'Pallets reference: %s' % line.tracking_id.name or '' ]] - Batch reference : [[ line.prodlot_id and line.prodlot_id.name or '/' ]] - - - [[ line.product_uos_qty ]] - - - [[ line.product_uos.name ]] + [[ line.product_uom and line.product_uom.name ]] - +
- - -