diff --git a/addons/sale/report/shipping.rml b/addons/sale/report/shipping.rml
index 82b3eac3cc0..35bc22beba9 100644
--- a/addons/sale/report/shipping.rml
+++ b/addons/sale/report/shipping.rml
@@ -241,10 +241,10 @@
[[ line.product_uom and line.product_uom.name ]]
- [[ line.sale_line_id.price_unit ]]
+ [[ line.sale_line_id and line.sale_line_id.price_unit ]]
|
- [[ line.sale_line_id.price_subtotal ]]
+ [[ line.sale_line_id and line.sale_line_id.price_subtotal ]]
|
@@ -263,7 +263,7 @@
Net Total :
- [[ o.sale_id.amount_untaxed ]]
+ [[ o.sale_id and o.sale_id.amount_untaxed ]]
|
@@ -276,7 +276,7 @@
Total :
|
- [[ o.sale_id.amount_total ]]
+ [[ o.sale_id and o.sale_id.amount_total ]]
|