diff --git a/addons/account_check_writing/report/check_print.py b/addons/account_check_writing/report/check_print.py
index f8e048beb2d..fd52c96b9aa 100644
--- a/addons/account_check_writing/report/check_print.py
+++ b/addons/account_check_writing/report/check_print.py
@@ -32,7 +32,6 @@ class report_print_check(report_sxw.rml_parse):
'time': time,
'get_lines': self.get_lines,
'fill_stars' : self.fill_stars,
- 'get_zip_line': self.get_zip_line,
})
def fill_stars(self, amount):
amount = amount.replace('Dollars','')
@@ -41,25 +40,6 @@ class report_print_check(report_sxw.rml_parse):
return ' '.join([amount,'*'*stars])
else: return amount
-
- def get_zip_line(self, address):
- '''
- Get the address line
- '''
- ret = ''
- if address:
- if address.city:
- ret += address.city
- if address.state_id:
- if address.state_id.name:
- if ret:
- ret += ', '
- ret += address.state_id.name
- if address.zip:
- if ret:
- ret += ' '
- ret += address.zip
- return ret
def get_lines(self, voucher_lines):
result = []
diff --git a/addons/account_check_writing/report/check_print_bottom.rml b/addons/account_check_writing/report/check_print_bottom.rml
index bb499a8aac1..f9add2fe60b 100644
--- a/addons/account_check_writing/report/check_print_bottom.rml
+++ b/addons/account_check_writing/report/check_print_bottom.rml
@@ -281,10 +281,7 @@
[[ voucher.partner_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]]
+ [[ display_address(voucher.partner_id) or removeParentNode('para') ]]
|
diff --git a/addons/account_check_writing/report/check_print_middle.rml b/addons/account_check_writing/report/check_print_middle.rml
index 5a2f83f20a2..b1fffca662d 100644
--- a/addons/account_check_writing/report/check_print_middle.rml
+++ b/addons/account_check_writing/report/check_print_middle.rml
@@ -237,10 +237,7 @@
[[ voucher.partner_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]]
+ [[ display_address(voucher.partner_id) or removeParentNode('para') ]]
|
diff --git a/addons/account_check_writing/report/check_print_top.rml b/addons/account_check_writing/report/check_print_top.rml
index 41526605f47..9a4d633e680 100644
--- a/addons/account_check_writing/report/check_print_top.rml
+++ b/addons/account_check_writing/report/check_print_top.rml
@@ -153,9 +153,7 @@
[[ voucher.partner_id.name ]]
- [[ voucher.partner_id.street2 or removeParentNode('para') ]]
- [[ get_zip_line(voucher.partner_id) ]]
- [[ voucher.partner_id.country_id.name]]
+ [[ display_address(voucher.partner_id) or removeParentNode('para') ]]
|
|