|
- [[ t.name ]]
+ [[ t.name ]]
|
[[ formatLang(t.base) ]]
@@ -522,4 +485,4 @@
-
+
\ No newline at end of file
diff --git a/addons/account_invoice_layout/report/special_message_invoice.py b/addons/account_invoice_layout/report/special_message_invoice.py
index aaa79787072..7051483828b 100644
--- a/addons/account_invoice_layout/report/special_message_invoice.py
+++ b/addons/account_invoice_layout/report/special_message_invoice.py
@@ -84,7 +84,7 @@ class account_invoice_with_message(report_sxw.rml_parse):
sub_total[i]=entry.price_subtotal
i=i+1
res['note']=entry.note
- res['currency']=invoice.currency_id.code
+ res['currency']=invoice.currency_id.symbol
res['type']=entry.state
if entry.uos_id.id==False:
@@ -117,7 +117,7 @@ class account_invoice_with_message(report_sxw.rml_parse):
j=j+1
res['price_subtotal']="%.2f"%(sum)
- res['currency']=invoice.currency_id.code
+ res['currency']=invoice.currency_id.symbol
res['quantity']=''
res['price_unit']=''
res['discount']=''
@@ -148,7 +148,7 @@ class account_invoice_with_message(report_sxw.rml_parse):
else:
res['name']=entry.name
res['price_subtotal']=''
- res['currency']=invoice.currency_id.code
+ res['currency']=invoice.currency_id.symbol
result.append(res)
return result
diff --git a/addons/account_invoice_layout/report/special_message_invoice.rml b/addons/account_invoice_layout/report/special_message_invoice.rml
index 20ec8b6b5c0..ee6436d0869 100644
--- a/addons/account_invoice_layout/report/special_message_invoice.rml
+++ b/addons/account_invoice_layout/report/special_message_invoice.rml
@@ -1,6 +1,6 @@
-
+
@@ -61,7 +61,6 @@
-
@@ -81,7 +80,6 @@
-
@@ -92,7 +90,6 @@
-
@@ -123,16 +120,13 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -143,8 +137,8 @@
-
-
+
+
@@ -158,11 +152,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -171,19 +165,19 @@
-
-
-
-
+
+
+
+
-
-
+
+
+
-
[[ repeatIn(objects,'o') ]]
[[ setLang(o.partner_id.lang) ]]
@@ -195,12 +189,11 @@
|
- [[ o.partner_id.name ]] [[ o.partner_id.title or '' ]]
- [[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]]
+ [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
[[ o.address_invoice_id.street ]]
- [[ o.address_invoice_id.street2 or '' ]]
- [[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]]
- [[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]]
+ [[ o.address_invoice_id.street2 or removeParentNode('para')]]
+ [[ o.address_invoice_id.zip or '' ]][[ o.address_invoice_id.city or '' ]]
+ [[ (o.address_invoice_id.state_id and o.address_invoice_id.state_id.name) or removeParentNode('para') ]]
[[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]]
@@ -220,11 +213,11 @@
Cancelled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] [[ o.number ]]
Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]
Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]
- Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] [[ o.number ]]
-
+ Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] [[ o.number ]]
+
-
+
@@ -243,7 +236,7 @@
|
- [[ o.name ]]
+ [[ o.name ]]
|
[[ formatLang(o.date_invoice,date=True) ]]
@@ -271,37 +264,34 @@
Disc. (%)
|
- Price
+ Price([[ o.currency_id.code ]])
|
[[ repeatIn(invoice_lines(o), 'a') ]]
-
+
|
[[ a['type']=='text' and removeParentNode('blockTable')]]
|
- [[ (a['type']=='title' or a['type']=='subtotal') and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['name'] ]] [[ a['type']=='article' and ('/ (' + a['tax_types'] +')' ) ]]
+ [[ ((a['type']=='title' or a['type']=='subtotal') and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['name'] ]] [[ a['type']=='article' and ('/ (' + a['tax_types'] +' )' ) ]]
|
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['quantity'] ]]
+ [[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['quantity'] ]]
|
[[ a['uos'] ]]
|
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['price_unit'] ]]
+ [[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['price_unit'] ]]
|
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['discount'] ]]
+ [[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['discount'] ]]
|
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]] [[ a['price_subtotal'] ]]
- |
-
- [[ a['currency'] ]]
+ [[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ a['price_subtotal'] ]] [[ a['currency'] ]]
|
@@ -311,12 +301,7 @@
|
- Note: [[ format(a['note']) or removeParentNode('tr') ]]
-
-
-
- |
-
+ Note: [[ (a['note'] and format(a['note'])) or removeParentNode('tr') ]]
@@ -348,9 +333,6 @@
|
-
-
-
|
@@ -366,7 +348,7 @@
|
- [[ a['type']!='break' and removeParentNode('pageBreak')]]
+ [[ a['type']!='break' and removeParentNode('pageBreak')]]
|
@@ -382,16 +364,12 @@
Disc. (%)
|
- Price
+ Price([[ o.currency_id.code ]])
|
-
-
-
-
-
+
|
@@ -402,17 +380,11 @@
Net Total:
|
- [[ formatLang(o.amount_untaxed) ]]
- |
-
- [[ o.currency_id.code ]]
+ [[ formatLang(o.amount_untaxed) ]] [[ o.currency_id.symbol ]]
|
-
-
-
-
+
|
@@ -423,17 +395,11 @@
Taxes:
|
- [[ formatLang(o.amount_tax) ]]
- |
-
- [[ o.currency_id.code ]]
+ [[ formatLang(o.amount_tax) ]] [[ o.currency_id.symbol ]]
|
-
-
-
-
+
|
@@ -444,23 +410,20 @@
Total:
|
- [[ formatLang(o.amount_total) ]]
- |
-
- [[ o.currency_id.code ]]
+ [[ formatLang(o.amount_total) ]] [[ o.currency_id.symbol ]]
|
-
+
-
+
-
+
|
- Tax
+ Tax
|
Base
@@ -480,10 +443,10 @@
[[ repeatIn(o.tax_line,'t') ]]
-
+
|
- [[ t.name ]]
+ [[ t.name ]]
|
[[ formatLang(t.base) ]]
@@ -502,7 +465,7 @@
-
+
@@ -537,4 +500,4 @@
-
+
\ No newline at end of file
| | |