diff --git a/addons/account_invoice_layout/report/report_account_invoice_layout.rml b/addons/account_invoice_layout/report/report_account_invoice_layout.rml
index 2cff52d4146..6a9de4f7f41 100644
--- a/addons/account_invoice_layout/report/report_account_invoice_layout.rml
+++ b/addons/account_invoice_layout/report/report_account_invoice_layout.rml
@@ -193,12 +193,12 @@
[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]
- [[ display_address(o.address_invoice_id) ]]
+ [[ display_address(o.partner_id, 'invoice') ]]
- Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]
- Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]
+ Tel. : [[ (o.partner_id and o.partner_id.phone) or removeParentNode('para') ]]
+ Fax : [[ (o.partner_id and o.partner_id.fax) or removeParentNode('para') ]]
VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]
|
@@ -247,7 +247,7 @@
[[ o.name or '' ]]
- [[ (o.address_invoice_id and o.address_invoice_id.partner_id and o.address_invoice_id.partner_id.ref) or ' ' ]]
+ [[ (o.partner_id and o.partner_id.ref) or ' ' ]]
|
diff --git a/addons/account_invoice_layout/report/special_message_invoice.rml b/addons/account_invoice_layout/report/special_message_invoice.rml
index f474a44d161..bd3eb175dd0 100644
--- a/addons/account_invoice_layout/report/special_message_invoice.rml
+++ b/addons/account_invoice_layout/report/special_message_invoice.rml
@@ -197,12 +197,12 @@
[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]
- [[ display_address(o.address_invoice_id) ]]
+ [[ display_address(o.partner_id, 'invoice') ]]
- Tel. : [[ (o.address_invoice_id and o.address_invoice_id.phone) or removeParentNode('para') ]]
- Fax : [[ (o.address_invoice_id and o.address_invoice_id.fax) or removeParentNode('para') ]]
+ Tel. : [[ (o.partner_id and o.partner_id.phone) or removeParentNode('para') ]]
+ Fax : [[ (o.partner_id and o.partner_id.fax) or removeParentNode('para') ]]
VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]
|
@@ -251,7 +251,7 @@
[[ o.name or '' ]]
- [[ (o.address_invoice_id and o.address_invoice_id.partner_id and o.address_invoice_id.partner_id.ref) or ' ' ]]
+ [[ ( o.partner_id and o.partner_id.ref) or ' ' ]]
|