diff --git a/addons/sale/report/order.rml b/addons/sale/report/order.rml index a5a29a6f38c..377126e0dbb 100644 --- a/addons/sale/report/order.rml +++ b/addons/sale/report/order.rml @@ -134,7 +134,8 @@ - [[ repeatIn(objects,'o') ]] [[ setLang(o.partner_id.lang) ]] + [[ repeatIn(objects,'o') ]] + [[ setLang(o.partner_id.lang) ]] @@ -148,7 +149,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 ]] [[ 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 '')) ]]