diff --git a/addons/account_check_writing/report/check_print_bottom.rml b/addons/account_check_writing/report/check_print_bottom.rml
index 231edb65547..bb499a8aac1 100644
--- a/addons/account_check_writing/report/check_print_bottom.rml
+++ b/addons/account_check_writing/report/check_print_bottom.rml
@@ -169,7 +169,7 @@
-
+
@@ -245,7 +245,7 @@
-
+
|
@@ -259,7 +259,7 @@
|
[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]
|
-
+ |
|
@@ -281,10 +281,10 @@
|
[[ voucher.partner_id.name ]]
- [[ voucher.partner_id.address and voucher.partner_id.address[0] and voucher.partner_id.address[0].street or removeParentNode('para') ]]
- [[ voucher.partner_id.address and voucher.partner_id.address[0] and voucher.partner_id.address[0].street2 or removeParentNode('para') ]]
- [[ get_zip_line(voucher.partner_id.address) ]]
- [[ voucher.partner_id.address[0].country_id.name]]
+ [[ voucher.partner_id.street or removeParentNode('para') ]]
+ [[ voucher.partner_id.street2 or removeParentNode('para') ]]
+ [[ get_zip_line(voucher.partner_id) ]]
+ [[ voucher.partner_id.country_id.name]]
|
@@ -295,7 +295,7 @@
-
+
|
@@ -306,11 +306,11 @@
|
-
+
|
-
+
diff --git a/addons/account_check_writing/report/check_print_middle.rml b/addons/account_check_writing/report/check_print_middle.rml
index a6416f9aeb2..5a2f83f20a2 100644
--- a/addons/account_check_writing/report/check_print_middle.rml
+++ b/addons/account_check_writing/report/check_print_middle.rml
@@ -193,7 +193,7 @@
-
+
|
@@ -215,7 +215,7 @@
|
|
-
+
|
@@ -237,10 +237,10 @@
|
[[ voucher.partner_id.name ]]
- [[ voucher.partner_id.address and voucher.partner_id.address[0] and voucher.partner_id.address[0].street or removeParentNode('para') ]]
- [[ voucher.partner_id.address and voucher.partner_id.address[0] and voucher.partner_id.address[0].street2 or removeParentNode('para') ]]
- [[ get_zip_line(voucher.partner_id.address) ]]
- [[ voucher.partner_id.address[0].country_id.name]]
+ [[ voucher.partner_id.street or removeParentNode('para') ]]
+ [[ voucher.partner_id.street2 or removeParentNode('para') ]]
+ [[ get_zip_line(voucher.partner_id) ]]
+ [[ voucher.partner_id.country_id.name]]
|
@@ -254,11 +254,11 @@
-
+
|
-
+
diff --git a/addons/account_check_writing/report/check_print_top.rml b/addons/account_check_writing/report/check_print_top.rml
index a5068617ebe..41526605f47 100644
--- a/addons/account_check_writing/report/check_print_top.rml
+++ b/addons/account_check_writing/report/check_print_top.rml
@@ -112,7 +112,7 @@
-
+
|
@@ -123,7 +123,7 @@
[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]
|
-
+
|
@@ -153,15 +153,15 @@
|
[[ voucher.partner_id.name ]]
- [[ voucher.partner_id.address and voucher.partner_id.address[0] and voucher.partner_id.address[0].street2 or removeParentNode('para') ]]
- [[ get_zip_line(voucher.partner_id.address[0]) ]]
- [[ voucher.partner_id.address[0].country_id.name]]
+ [[ voucher.partner_id.street2 or removeParentNode('para') ]]
+ [[ get_zip_line(voucher.partner_id) ]]
+ [[ voucher.partner_id.country_id.name]]
|
|
-
+
|
@@ -176,7 +176,7 @@
- |
+
@@ -184,7 +184,7 @@
-
+
|
diff --git a/addons/auction/report/buyer_form_report.rml b/addons/auction/report/buyer_form_report.rml
index 7f9a124e2d9..ed1804be8a2 100644
--- a/addons/auction/report/buyer_form_report.rml
+++ b/addons/auction/report/buyer_form_report.rml
@@ -99,7 +99,7 @@
|
[[ o['partner'] and o['partner'].name or False]]
- [[o['partner'] and o['partner'].address and display_address(o['partner'].address[0]) ]]
+ [[o['partner'] and o['partner'] and display_address(o['partner']) ]]
|
diff --git a/addons/auction/report/deposit_seller.rml b/addons/auction/report/deposit_seller.rml
index 7259ef005d3..b300784d83a 100644
--- a/addons/auction/report/deposit_seller.rml
+++ b/addons/auction/report/deposit_seller.rml
@@ -84,7 +84,7 @@
[[o.bord_vnd_id.partner_id.title]]
[[o.bord_vnd_id.partner_id.name]]
- [[o.bord_vnd_id.partner_id.address and display_address(o.bord_vnd_id.partner_id.address[0]) ]]
+ [[o.bord_vnd_id.partner_id and display_address(o.bord_vnd_id.partner_id) ]]
diff --git a/addons/auction/report/seller_form_report.rml b/addons/auction/report/seller_form_report.rml
index 5d1669802b4..da83950b463 100644
--- a/addons/auction/report/seller_form_report.rml
+++ b/addons/auction/report/seller_form_report.rml
@@ -74,7 +74,7 @@
[[ o['partner'] and o['partner'].name or False]]
- [[ o['partner'] and o['partner'].address and display_address(o['partner'].address[0])
+ [[ o['partner'] and o['partner'] and display_address(o['partner'])
|