diff --git a/addons/account/report/third_party_ledger.py b/addons/account/report/third_party_ledger.py index 276e9c304da..5721f532729 100644 --- a/addons/account/report/third_party_ledger.py +++ b/addons/account/report/third_party_ledger.py @@ -53,6 +53,7 @@ class third_party_ledger(rml_parse.rml_parse, common_report_header): 'get_end_date':self._get_end_date, 'get_journal': self._get_journal, 'get_partners':self._get_partners, + 'get_intial_balance':self._get_intial_balance, }) @@ -445,7 +446,9 @@ class third_party_ledger(rml_parse.rml_parse, common_report_header): else: currency_total = self.tot_currency = 0.0 return currency_total - + def _get_intial_balance(self, parnter, data): + return '' + report_sxw.report_sxw('report.account.third_party_ledger', 'res.partner', 'addons/account/report/third_party_ledger.rml',parser=third_party_ledger, header='internal') diff --git a/addons/account/report/third_party_ledger.rml b/addons/account/report/third_party_ledger.rml index 3375d8a75b9..45f0d1e1007 100644 --- a/addons/account/report/third_party_ledger.rml +++ b/addons/account/report/third_party_ledger.rml @@ -275,6 +275,20 @@ [[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] + [[ data['form']['initial_balance'] and get_intial_balance(p,data) or removeParentNode('tr') ]] + + + + + + + + + + + + + [[ p.ref ]] - [[ p.name ]] @@ -377,6 +391,25 @@ [[ data['form']['amount_currency'] == True or removeParentNode('blockTable') ]] + [[ data['form']['initial_balance'] and get_intial_balance(p,data) or removeParentNode('tr') ]] + + + + + + + + + + + + + + + + + + [[ p.ref ]] - [[ p.name ]] diff --git a/addons/account/report/third_party_ledger_other.rml b/addons/account/report/third_party_ledger_other.rml index 0551630cae5..dc93a06d2dd 100644 --- a/addons/account/report/third_party_ledger_other.rml +++ b/addons/account/report/third_party_ledger_other.rml @@ -455,6 +455,20 @@
[[ repeatIn(objects, 'p') ]] [[ setLang(p.lang) ]] [[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] + [[ data['form']['initial_balance'] and get_intial_balance(p,data) or removeParentNode('tr') ]] + + + + + + + + + + + + + [[ p.ref ]] - [[ p.name ]] @@ -552,6 +566,21 @@
[[ repeatIn(objects, 'p') ]] [[ setLang(p.lang) ]] [[ data['form']['amount_currency'] == True or removeParentNode('blockTable') ]] + + + + + + + + + + + + + + + [[ p.ref ]] - [[ p.name ]]