diff --git a/addons/sale/report/order.rml b/addons/sale/report/order.rml index a5a29a6f38c..03be1dff0a9 100644 --- a/addons/sale/report/order.rml +++ b/addons/sale/report/order.rml @@ -148,7 +148,7 @@ - Invoice address :[[ o.partner_id.property_payment_term.name ]] + 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 '')) ]]