From 8367adba081405d477ff77cd6afd612021afb7e9 Mon Sep 17 00:00:00 2001 From: "Kuldeep Joshi (OpenERP)" Date: Tue, 6 Mar 2012 12:13:27 +0530 Subject: [PATCH] [IMP]account_invoice_layout: set invoice address for report bzr revid: kjo@tinyerp.com-20120306064327-x02hchrwwu5ou0s7 --- .../report/report_account_invoice_layout.rml | 8 ++++---- .../report/special_message_invoice.rml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 ' ' ]]