diff --git a/addons/account/report/account_aged_partner_balance.rml b/addons/account/report/account_aged_partner_balance.rml
index c76aba31763..3f2a05b7652 100644
--- a/addons/account/report/account_aged_partner_balance.rml
+++ b/addons/account/report/account_aged_partner_balance.rml
@@ -196,25 +196,25 @@
Account Total
diff --git a/addons/account/report/account_balance_sheet.rml b/addons/account/report/account_balance_sheet.rml
index 205bfff497b..d72376c4f1a 100644
--- a/addons/account/report/account_balance_sheet.rml
+++ b/addons/account/report/account_balance_sheet.rml
@@ -240,8 +240,8 @@
[[ setTag('tr','tr',{'style': 'Table'+str(min(3,a['level']))}) ]]
[[ (a['type'] =='view' and a['level'] >= 3) and setTag('para','para',{'style': 'terp_level_3_code_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a['level']))+'_code'}) ]][[ a['code'] ]] |
[[ (a['type'] =='view' and a['level'] >= 3) and setTag('para','para',{'style': 'terp_level_'+str(min(3,a['level']))+'_name_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(4,a['level']))+'_name'}) ]][[ a['name'] ]] |
- [[ (a['level'] <>2) or removeParentNode('td') ]][[ (a['type'] =='view' and a['level'] >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a['level']))+'_balance'}) ]][[ formatLang(a['balance']) ]] [[company.currency_id.symbol ]] |
- [[ a['level'] == 2 or removeParentNode('td') ]][[ formatLang(a['balance']) ]] [[company.currency_id.symbol ]] |
+ [[ (a['level'] <>2) or removeParentNode('td') ]][[ (a['type'] =='view' and a['level'] >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a['level']))+'_balance'}) ]][[ formatLang(a['balance'], currency = company.currency_id) ]] |
+ [[ a['level'] == 2 or removeParentNode('td') ]][[ formatLang(a['balance'], currency = company.currency_id) ]] |
@@ -250,7 +250,7 @@
Balance:
- [[ formatLang(sum_cr()) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_cr(), currency = company.currency_id) ]]
|
@@ -282,8 +282,8 @@
[[ setTag('tr','tr',{'style': 'Table'+str(min(3,a['level']))}) ]]
[[ (a['type'] =='view' and a['level'] >= 3) and setTag('para','para',{'style': 'terp_level_3_code_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a['level']))+'_code'}) ]][[ a['code'] ]] |
[[ (a['type'] =='view' and a['level'] >= 3) and setTag('para','para',{'style': 'terp_level_'+str(min(3,a['level']))+'_name_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(4,a['level']))+'_name'}) ]][[ a['name'] ]] |
- [[ (a['level'] <>2) or removeParentNode('td') ]][[ (a['type'] =='view' and a['level'] >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a['level']))+'_balance'}) ]][[ formatLang(a['balance']) ]] [[company.currency_id.symbol ]] |
- [[ a['level'] == 2 or removeParentNode('td') ]][[ formatLang(a['balance']) ]] [[company.currency_id.symbol ]] |
+ [[ (a['level'] <>2) or removeParentNode('td') ]][[ (a['type'] =='view' and a['level'] >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a['level']))+'_balance'}) ]][[ formatLang(a['balance'], currency = company.currency_id) ]] |
+ [[ a['level'] == 2 or removeParentNode('td') ]][[ formatLang(a['balance'], currency = company.currency_id) ]] |
@@ -292,7 +292,7 @@
Balance:
- [[ formatLang(sum_dr()) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_dr(), currency = company.currency_id) ]]
|
diff --git a/addons/account/report/account_balance_sheet_horizontal.rml b/addons/account/report/account_balance_sheet_horizontal.rml
index 7e4f9f844a5..8f902352498 100644
--- a/addons/account/report/account_balance_sheet_horizontal.rml
+++ b/addons/account/report/account_balance_sheet_horizontal.rml
@@ -202,7 +202,7 @@
[[ '. '*(a['level1']-1) ]][[ a['level1']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) or removeParentNode('font') ]][[ a['name1'] ]]
- [[ a['level1']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[ formatLang(a['balance1']) ]] [[ company.currency_id.symbol ]]
+ [[ a['level1']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[ formatLang(a['balance1'], currency_obj=company.currency_id) ]]
|
[[ repeatIn(get_lines(), 'a') ]] [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) or removeParentNode('font') ]][[ a['code'] ]][[ a['name']=='Net Profit' and setTag('para','para',{'style':'terp_default_Bold_9'}) or removeParentNode('font') ]]
@@ -213,7 +213,7 @@
|
[[ a['level1']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]]
[[ a['name']=='Net Profit' and setTag('para','para',{'style':'terp_default_Right_9_Bold'}) or removeParentNode('font') ]]
- [[(a['code'] and a['name']) and formatLang(a['balance']) or removeParentNode('font')]] [[ company.currency_id.symbol ]]
+ [[(a['code'] and a['name']) and formatLang(a['balance'], currency_obj=company.currency_id) or removeParentNode('font')]]
|
@@ -223,13 +223,13 @@
Balance:
- [[ formatLang(sum_cr()) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_cr(), currency_obj=company.currency_id) ) ]]
|
Balance:
|
- [[ formatLang(sum_dr()) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_dr(), currency_obj=company.currency_id) ) ]]
|
diff --git a/addons/account/report/account_central_journal.rml b/addons/account/report/account_central_journal.rml
index 33566083652..2233ddb3f2e 100644
--- a/addons/account/report/account_central_journal.rml
+++ b/addons/account/report/account_central_journal.rml
@@ -299,7 +299,7 @@
|
[[ formatLang( sum_debit(o.period_id.id, o.journal_id.id)) ]] |
[[ formatLang( sum_credit(o.period_id.id, o.journal_id.id)) ]] |
- [[ formatLang( sum_credit(o.period_id.id, o.journal_id.id)-sum_debit(o.period_id.id, o.journal_id.id) ) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang( sum_credit(o.period_id.id, o.journal_id.id)-sum_debit(o.period_id.id, o.journal_id.id), currency_obj=company.currency_id ) ]] |
[[ display_currency(data) or removeParentNode('blockTable') ]]
@@ -308,7 +308,7 @@
|
[[ formatLang( sum_debit(o.period_id.id, o.journal_id.id)) ]] |
[[ formatLang( sum_credit(o.period_id.id, o.journal_id.id)) ]] |
- [[ formatLang( sum_credit(o.period_id.id, o.journal_id.id)-sum_debit(o.period_id.id, o.journal_id.id) ) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang( sum_credit(o.period_id.id, o.journal_id.id)-sum_debit(o.period_id.id, o.journal_id.id), currency_obj=company.currency_id ) ]] |
|
@@ -320,7 +320,7 @@
[[ line['name'] ]] |
[[ formatLang(line['debit']) ]] |
[[ formatLang(line['credit'])]] |
- [[ formatLang(line['credit']-line['debit']) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line['credit']-line['debit'], currency_obj=company.currency_id ) ]] |
[[ display_currency(data) or removeParentNode('blockTable') ]]
@@ -329,7 +329,7 @@
[[ line['name'] ]] |
[[ formatLang(line['debit']) ]] |
[[ formatLang(line['credit'])]] |
- [[ formatLang(line['credit']-line['debit']) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line['credit']-line['debit'], currency_obj=company.currency_id ) ]] |
[[ (line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'] ) ]] [[ line['currency_code'] or '' ]] |
diff --git a/addons/account/report/account_general_journal.rml b/addons/account/report/account_general_journal.rml
index f4cc13069c8..0af13022a07 100644
--- a/addons/account/report/account_general_journal.rml
+++ b/addons/account/report/account_general_journal.rml
@@ -273,7 +273,7 @@
|
[[ formatLang(sum_debit()) ]] |
[[ formatLang( sum_credit()) ]] |
- [[ formatLang( sum_debit()- sum_credit()) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang( sum_debit()- sum_credit(), currency_obj=company.currency_id) ]] |
[[ display_currency(data) or removeParentNode('blockTable') ]]
@@ -290,7 +290,7 @@
|
[[ formatLang(sum_debit()) ]] |
[[ formatLang( sum_credit()) ]] |
- [[ formatLang( sum_credit()- sum_debit()) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang( sum_credit()- sum_debit(), currency_obj=company.currency_id) ]] |
@@ -311,7 +311,7 @@
[[ formatLang(sum_credit_period(o.id)) ]]
- [[ formatLang(sum_credit_period(o.id)-sum_debit_period(o.id)) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_credit_period(o.id)-sum_debit_period(o.id), currency_obj=company.currency_id) ]]
|
@@ -337,7 +337,7 @@
[[ formatLang(sum_credit_period(o.id)) ]]
|
- [[ formatLang(sum_credit_period(o.id)-sum_debit_period(o.id)) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_credit_period(o.id)-sum_debit_period(o.id), currency_obj=company.currency_id) ]]
|
@@ -358,7 +358,7 @@
[[ formatLang(line['credit']) ]]
- [[ formatLang(line['credit']-line['debit'] ) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(line['credit']-line['debit'], currency_obj=company.currency_id ) ]]
|
@@ -371,7 +371,7 @@
[[ line['name'] ]] |
[[ formatLang(line['debit'] )]] |
[[ formatLang(line['credit']) ]] |
- [[ formatLang(line['credit']-line['debit'] ) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line['credit']-line['debit'], currency_obj=company.currency_id ) ]] |
[[ (line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'] ) ]] [[ line['currency_code'] or '' ]] |
diff --git a/addons/account/report/account_general_ledger.rml b/addons/account/report/account_general_ledger.rml
index 15614444822..de62baed742 100644
--- a/addons/account/report/account_general_ledger.rml
+++ b/addons/account/report/account_general_ledger.rml
@@ -476,10 +476,10 @@
[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]
- [[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]]
|
- [[ o.currency_id and formatLang(sum_currency_amount_account(o), digits=get_digits(dp='Account')) + o.currency_id.symbol or '' ]]
+ [[ o.currency_id and formatLang(sum_currency_amount_account(o), digits=get_digits(dp='Account'),currency_obj=o.currency_id) or '' ]]
|
@@ -515,7 +515,7 @@
[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]
- [[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(line['progress'], digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]]
|
[[ (line.has_key('currency_id') and line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']]
@@ -572,7 +572,7 @@
[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]
|
- [[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]]
|
@@ -608,7 +608,7 @@
[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]
- [[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(line['progress'], digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]]
|
diff --git a/addons/account/report/account_general_ledger_landscape.rml b/addons/account/report/account_general_ledger_landscape.rml
index ac100c3ecd0..ad5aef790d8 100644
--- a/addons/account/report/account_general_ledger_landscape.rml
+++ b/addons/account/report/account_general_ledger_landscape.rml
@@ -505,10 +505,10 @@
[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]
- [[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account'), currency = company.currency_id) ]]
|
- [[ o.currency_id and formatLang(sum_currency_amount_account(o), digits=get_digits(dp='Account')) + o.currency_id.symbol or '' ]]
+ [[ o.currency_id and formatLang(sum_currency_amount_account(o), digits=get_digits(dp='Account'),currency_obj=o.currency_id) or '' ]]
|
@@ -547,7 +547,7 @@
[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]
- [[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(line['progress'], digits=get_digits(dp='Account'), currency_obj=company.currency_id) ]]
|
[[ (line.has_key('currency_id') and line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']]
@@ -607,7 +607,7 @@
[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]
|
- [[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account'), currency_obj=company.currency_id) ]]
|
@@ -646,7 +646,7 @@
[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]
- [[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(line['progress'], digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]]
|
diff --git a/addons/account/report/account_journal.rml b/addons/account/report/account_journal.rml
index 9b0ac55bb56..9d305bae36b 100644
--- a/addons/account/report/account_journal.rml
+++ b/addons/account/report/account_journal.rml
@@ -247,8 +247,8 @@
|
|
|
- [[ formatLang(sum_debit(o.period_id.id, o.journal_id.id)) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id)) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(sum_debit(o.period_id.id, o.journal_id.id), currency_obj=company.currency_id) ]] |
+ [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id), currency_obj=company.currency_id) ]] |
[[lines(o.period_id.id, o.journal_id.id) or removeParentNode('story') ]]
@@ -258,8 +258,8 @@
| [[ line.account_id.code ]] |
[[ line.partner_id and strip_name(line.partner_id.name,17) ]] |
[[ strip_name(line.name,27) ]] |
- [[ formatLang(line.debit) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(line.credit) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line.debit, currency_obj=company.currency_id) ]] |
+ [[ formatLang(line.credit, currency_obj=company.currency_id) ]] |
@@ -282,8 +282,8 @@
|
|
|
- [[ formatLang(sum_debit(o.period_id.id, o.journal_id.id)) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id)) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(sum_debit(o.period_id.id, o.journal_id.id), currency_obj=company.currency_id) ]] |
+ [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id), currency_obj=company.currency_id) ]] |
|
@@ -295,9 +295,9 @@
[[ line.account_id.code ]] |
[[ line.partner_id and strip_name(line.partner_id.name,15) ]] |
[[ strip_name(line.name,17) ]] |
- [[ formatLang(line.debit) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(line.credit) ]] [[ company.currency_id.symbol ]] |
- [[ line.currency_id and formatLang(line.amount_currency) or '' ]] [[ line.currency_id.symbol or '']] |
+ [[ formatLang(line.debit, currency_obj=company.currency_id) ]] |
+ [[ formatLang(line.credit, currency_obj=company.currency_id) ]] |
+ [[ line.currency_id and formatLang(line.amount_currency, currency_obj=line.currency_id) or '' ]] |
diff --git a/addons/account/report/account_partner_balance.rml b/addons/account/report/account_partner_balance.rml
index 6425d6a4db6..7052c2efb8f 100644
--- a/addons/account/report/account_partner_balance.rml
+++ b/addons/account/report/account_partner_balance.rml
@@ -241,16 +241,16 @@
|
[[ formatLang(sum_debit()) ]] |
[[ formatLang(sum_credit()) ]] |
- [[ formatLang((sum_debit()-sum_credit())) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(sum_litige()) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang((sum_debit()-sum_credit()), currency_obj=company.currency_id) ]] |
+ [[ formatLang(sum_litige(), currency_obj=company.currency_id) ]] |
| [[ repeatIn(lines(), 'a') ]][[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ a['ref'] ]] [[ a['type']==3 and a['code'] ]] |
[[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ a['name'] ]] |
[[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['debit']) ]] |
[[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['credit']) ]] |
- [[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['balance']) ]] [[ company.currency_id.symbol ]] |
- [[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['enlitige'] or 0.0) ]] [[ company.currency_id.symbol ]] |
+ [[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['balance'], currency_obj=company.currency_id) ]] |
+ [[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['enlitige'] or 0.0, currency_obj=company.currency_id) ]] |
diff --git a/addons/account/report/account_partner_ledger.rml b/addons/account/report/account_partner_ledger.rml
index c1ef9b22502..1b423ad1e99 100644
--- a/addons/account/report/account_partner_ledger.rml
+++ b/addons/account/report/account_partner_ledger.rml
@@ -477,7 +477,7 @@
[[ formatLang((sum_credit_partner(p))) ]]
- [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p)), currency_obj=company.currency_id) ]]
|
@@ -497,7 +497,7 @@
[[ formatLang(get_intial_balance(p)[0][1]) ]]
- [[ formatLang(get_intial_balance(p)[0][2]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][2], currency_obj=company.currency_id) ]]
|
@@ -528,7 +528,7 @@
[[ formatLang((line['credit'])) ]]
- [[ formatLang((line['progress'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['progress']), currency_obj=company.currency_id) ]]
|
@@ -581,7 +581,7 @@
[[ formatLang((sum_credit_partner(p))) ]]
- [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p)), currency_obj=company.currency_id) ]]
|
@@ -604,7 +604,7 @@
[[ formatLang(get_intial_balance(p)[0][1]) ]]
|
- [[ formatLang(get_intial_balance(p)[0][2]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][2], currency_obj=company.currency_id) ]]
|
@@ -640,7 +640,7 @@
[[ formatLang((line['credit'])) ]]
|
- [[ formatLang((line['progress'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['progress']), currency_obj=company.currency_id) ]]
|
diff --git a/addons/account/report/account_partner_ledger_other.rml b/addons/account/report/account_partner_ledger_other.rml
index 2f58fc8ec95..97ba9b554d9 100644
--- a/addons/account/report/account_partner_ledger_other.rml
+++ b/addons/account/report/account_partner_ledger_other.rml
@@ -482,7 +482,7 @@
[[ formatLang((sum_credit_partner(p))) ]]
|
- [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p)), currency_obj=company.currency_id) ]]
|
@@ -502,7 +502,7 @@
[[ formatLang(get_intial_balance(p)[0][1]) ]]
- [[ formatLang(get_intial_balance(p)[0][2]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][2], currency_obj=company.currency_id) ]]
|
@@ -533,7 +533,7 @@
[[ formatLang((line['credit'])) ]]
- [[ formatLang((line['progress'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['progress']), currency_obj=company.currency_id) ]]
|
@@ -590,7 +590,7 @@
[[ formatLang((sum_credit_partner(p))) ]]
- [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p)), currency_obj=company.currency_id) ]]
|
@@ -613,7 +613,7 @@
[[ formatLang(get_intial_balance(p)[0][1]) ]]
|
- [[ formatLang(get_intial_balance(p)[0][2]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][2], currency_obj=company.currency_id) ]]
|
@@ -649,7 +649,7 @@
[[ formatLang((line['credit'])) ]]
|
- [[ formatLang((line['progress'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['progress']), currency_obj=company.currency_id) ]]
|
diff --git a/addons/account/report/account_print_invoice.rml b/addons/account/report/account_print_invoice.rml
index 0350fbf7379..db8f752a56d 100644
--- a/addons/account/report/account_print_invoice.rml
+++ b/addons/account/report/account_print_invoice.rml
@@ -263,7 +263,7 @@
[[ formatLang(l.discount, dp='Account') ]]
|
- [[ formatLang(l.price_subtotal, dp='Account') ]] [[ o.currency_id.symbol ]]
+ [[ formatLang(l.price_subtotal, dp='Account', currency_obj=o.currency_id) ]]
|
@@ -309,7 +309,7 @@
Net Total:
|
- [[ formatLang(o.amount_untaxed, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]
+ [[ formatLang(o.amount_untaxed, digits=get_digits(dp='Account'), currency_obj=o.currency_id) ]]
|
@@ -322,7 +322,7 @@
Taxes:
|
- [[ formatLang(o.amount_tax, dp='Account') ]] [[ o.currency_id.symbol ]]
+ [[ formatLang(o.amount_tax, dp='Account', currency_obj=o.currency_id) ]]
|
@@ -335,7 +335,7 @@
Total:
|
- [[ formatLang(o.amount_total, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]
+ [[ formatLang(o.amount_total, digits=get_digits(dp='Account'), currency_obj=o.currency_id) ]]
|
@@ -368,10 +368,10 @@
[[ t.name ]]
- [[ formatLang(t.base, dp='Account') ]] [[ o.currency_id.symbol ]]
+ [[ formatLang(t.base, dp='Account', currency_obj=o.currency_id) ]]
|
- [[ (t.tax_code_id and t.tax_code_id.notprintable) and removeParentNode('blockTable') or '' ]] [[ formatLang(t.amount, digits=get_digits(dp='Account')) ]] [[ o.currency_id.symbol ]]
+ [[ (t.tax_code_id and t.tax_code_id.notprintable) and removeParentNode('blockTable') or '' ]] [[ formatLang(t.amount, digits=get_digits(dp='Account'), currency_obj=o.currency_id) ]]
|
diff --git a/addons/account/report/account_print_overdue.rml b/addons/account/report/account_print_overdue.rml
index 0797d544f9b..25ccad25377 100644
--- a/addons/account/report/account_print_overdue.rml
+++ b/addons/account/report/account_print_overdue.rml
@@ -219,7 +219,7 @@
[[ (line['account_id']['type'] == 'receivable' and formatLang(line['credit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['debit'] * -1) or 0) ]]
|
- [[ formatLang((line['date_maturity'] < time.strftime('%Y-%m-%d'))) and formatLang(line['debit'] - line['credit']) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['date_maturity'] < time.strftime('%Y-%m-%d'))) and formatLang(line['debit'] - line['credit'], currency_obj=company.currency_id) ]
|
[[ line['blocked'] and 'X' or '' ]]
@@ -244,7 +244,7 @@
[[ formatLang((reduce(lambda x, y: x + ((y['account_id']['type'] == 'receivable' and y['credit'] or 0) or (y['account_id']['type'] == 'payable' and y['debit'] * -1 or 0)), getLines(o), 0))) ]]
|
- [[ formatLang((reduce(lambda x, y: x + (y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((reduce(lambda x, y: x + (y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0)), currency_obj=company.currency_id) ]]
|
@@ -264,7 +264,7 @@
Balance :
|
- [[ formatLang((reduce(lambda x, y: x +(y['debit'] - y['credit']), getLines(o), 0))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((reduce(lambda x, y: x +(y['debit'] - y['credit']), getLines(o), 0)), currency_obj=company.currency_id) ]]
|
@@ -279,10 +279,10 @@
- Total amount due: [[ formatLang((reduce(lambda x, y: x + (y['debit'] - y['credit']), getLines(o), 0))) ]] [[ company.currency_id.symbol ]].
+ Total amount due: [[ formatLang((reduce(lambda x, y: x + (y['debit'] - y['credit']), getLines(o), 0)), currency_obj=company.currency_id) ]].
-
\ No newline at end of file
+
diff --git a/addons/account/report/account_profit_horizontal.rml b/addons/account/report/account_profit_horizontal.rml
index 6c70bb47310..7737fc8769c 100644
--- a/addons/account/report/account_profit_horizontal.rml
+++ b/addons/account/report/account_profit_horizontal.rml
@@ -221,7 +221,7 @@
|
- [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[ formatLang(abs(a['balance'])) ]] [[ company.currency_id.symbol ]]
+ [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[ formatLang(abs(a['balance']), currency_obj=company.currency_id) ]]
|
@@ -234,7 +234,7 @@
|
- [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[(a['code1'] and a['name1']) and formatLang(abs(a['balance1'])) or removeParentNode('font') ]] [[ company.currency_id.symbol ]]
+ [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font') ]][[(a['code1'] and a['name1']) and formatLang(abs(a['balance1']), currency_obj=company.currency_id) or removeParentNode('font') ]]
|
@@ -247,7 +247,7 @@
[[ final_result()['type'] == 'Net Profit' and final_result()['type'] or '' ]]
- [[ final_result()['balance'] and final_result()['type'] == 'Net Profit' and formatLang(abs(final_result()['balance'])) ]] [[ company.currency_id.symbol ]]
+ [[ final_result()['balance'] and final_result()['type'] == 'Net Profit' and formatLang(abs(final_result()['balance']), currency_obj=company.currency_id) ]]
|
@@ -256,7 +256,7 @@
[[ final_result()['type'] == 'Net Loss' and final_result()['type'] or '' ]]
|
- [[ final_result()['balance'] and final_result()['type'] == 'Net Loss' and formatLang(abs(final_result()['balance'])) ]] [[ final_result()['balance'] and final_result()['type'] == 'Net Loss' and company.currency_id.symbol ]]
+ [[ final_result()['balance'] and final_result()['type'] == 'Net Loss' and formatLang(abs(final_result()['balance']), currency_obj=company.currency_id) ]]
|
@@ -267,13 +267,13 @@
Total:
- [[ formatLang(abs(sum_dr())) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(abs(sum_dr()), currency_obj=company.currency_id) ]]
|
Total:
|
- [[ formatLang(abs(sum_cr())) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(abs(sum_cr()), currency_obj=company.currency_id) ]]
|
diff --git a/addons/account/report/account_profit_loss.rml b/addons/account/report/account_profit_loss.rml
index 2b29f479478..4fc2d73c3d6 100644
--- a/addons/account/report/account_profit_loss.rml
+++ b/addons/account/report/account_profit_loss.rml
@@ -228,8 +228,8 @@
[[ setTag('tr','tr',{'style': 'Table'+str(min(3,a.level))}) ]]
[[ (a.type =='view' and a.level >= 3) and setTag('para','para',{'style': 'terp_level_3_code_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a.level))+'_code'}) ]][[ a.code ]] |
[[ (a.type =='view' and a.level >= 3) and setTag('para','para',{'style': 'terp_level_'+str(min(3,a.level))+'_name_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(4,a.level))+'_name'}) ]][[ a.name ]] |
- [[ (a.level <>2) or removeParentNode('td') ]][[ (a.type =='view' and a.level >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a.level))+'_balance'}) ]][[ formatLang(a.balance) ]] [[company.currency_id.symbol ]] |
- [[ a.level == 2 or removeParentNode('td') ]][[ formatLang(a.balance) ]] [[company.currency_id.symbol ]] |
+ [[ (a.level <>2) or removeParentNode('td') ]][[ (a.type =='view' and a.level >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a.level))+'_balance'}) ]][[ formatLang(a.balance, currency_obj=company.currency_id) ]] |
+ [[ a.level == 2 or removeParentNode('td') ]][[ formatLang(a.balance, currency_obj=company.currency_id) ]] |
@@ -241,7 +241,7 @@
[[ final_result()['type'] == 'Net Profit' and final_result()['type'] or removeParentNode('blockTable') ]]
- [[ final_result()['balance'] and final_result()['type'] == 'Net Profit' and formatLang(final_result()['balance']) ]] [[ final_result()['balance'] and final_result()['type'] == 'Net Profit' and company.currency_id.symbol ]]
+ [[ final_result()['balance'] and final_result()['type'] == 'Net Profit' and formatLang(final_result()['balance'], currency_obj=company.currency_id) ]]
|
@@ -251,7 +251,7 @@
Total:
- [[ formatLang(sum_dr()) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_dr(), currency_obj=company.currency_id) ]]
|
@@ -277,8 +277,8 @@
[[ setTag('tr','tr',{'style': 'Table'+str(min(3,a.level))}) ]]
[[ (a.type =='view' and a.level >= 3) and setTag('para','para',{'style': 'terp_level_3_code_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a.level))+'_code'}) ]][[ a.code ]] |
[[ (a.type =='view' and a.level >= 3) and setTag('para','para',{'style': 'terp_level_'+str(min(3,a.level))+'_name_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(4,a.level))+'_name'}) ]][[ a.name ]] |
- [[ (a.level <>2) or removeParentNode('td') ]][[ (a.type =='view' and a.level >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a.level))+'_balance'}) ]][[ formatLang(a.balance) ]] [[company.currency_id.symbol ]] |
- [[ a.level == 2 or removeParentNode('td') ]][[ formatLang(a.balance) ]] [[company.currency_id.symbol ]] |
+ [[ (a.level <>2) or removeParentNode('td') ]][[ (a.type =='view' and a.level >= 3) and setTag('para','para',{'style': 'terp_level_3_balance_bold'}) or setTag('para','para',{'style': 'terp_level_'+str(min(3,a.level))+'_balance'}) ]][[ formatLang(a.balance, currency_obj=company.currency_id) ]] |
+ [[ a.level == 2 or removeParentNode('td') ]][[ formatLang(a.balance, currency_obj=company.currency_id) ]] |
@@ -290,7 +290,7 @@
[[ final_result()['type'] == 'Net Loss' and final_result()['type'] or removeParentNode('blockTable') ]]
- [[ final_result()['balance'] and final_result()['type'] == 'Net Loss' and formatLang(final_result()['balance']) ]] [[ final_result()['balance'] and final_result()['type'] == 'Net Loss' and company.currency_id.symbol ]]
+ [[ final_result()['balance'] and final_result()['type'] == 'Net Loss' and formatLang(final_result()['balance'], currency_obj=company.currency_id) ]]
|
@@ -300,7 +300,7 @@
Total:
- [[ formatLang(sum_cr()) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(sum_cr(), currency_obj=company.currency_id) ]]
|
diff --git a/addons/account/report/account_tax_code.rml b/addons/account/report/account_tax_code.rml
index 7489ac72a39..10a7c76a821 100644
--- a/addons/account/report/account_tax_code.rml
+++ b/addons/account/report/account_tax_code.rml
@@ -129,10 +129,10 @@
[[ line['name'] ]]
- [[ formatLang(line['debit']) ]] [[ company.currency_id.symbol]]
+ [[ formatLang(line['debit'], currency_obj=company.currency_id) ]]
|
- [[ formatLang(line['credit']) ]] [[ company.currency_id.symbol]]
+ [[ formatLang(line['credit'], currency_obj=company.currency_id) ]]
|
@@ -141,4 +141,4 @@
-
\ No newline at end of file
+
diff --git a/addons/account/report/account_tax_report.rml b/addons/account/report/account_tax_report.rml
index de4aa415fef..f489ee1143e 100644
--- a/addons/account/report/account_tax_report.rml
+++ b/addons/account/report/account_tax_report.rml
@@ -153,7 +153,7 @@