From 3ce4d27c04ba905a694145aea9d27b77608625de Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 15 Sep 2010 11:35:44 +0200 Subject: [PATCH] modifs bzr revid: fp@tinyerp.com-20100915093544-9xungnep0ocab9re --- addons/account/report/account_partner_ledger.py | 5 +++-- addons/account/report/account_partner_ledger.rml | 8 ++++---- .../report/account_partner_ledger_other.rml | 16 ++++++++-------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/addons/account/report/account_partner_ledger.py b/addons/account/report/account_partner_ledger.py index db69e51ecf5..4211a516aa7 100644 --- a/addons/account/report/account_partner_ledger.py +++ b/addons/account/report/account_partner_ledger.py @@ -123,11 +123,12 @@ class third_party_ledger(rml_parse.rml_parse, common_report_header): else: RECONCILE_TAG = "AND l.reconcile_id IS NULL" self.cr.execute( - "SELECT l.id,l.date,j.code, l.ref, l.name, l.debit, l.credit,l.amount_currency,c.code AS currency_code " \ + "SELECT l.id,l.date,j.code, l.ref, m.name as move_name, l.name, l.debit, l.credit,l.amount_currency,c.code AS currency_code " \ "FROM account_move_line l " \ "LEFT JOIN account_journal j " \ "ON (l.journal_id = j.id) " \ "LEFT JOIN res_currency c on (l.currency_id=c.id)" \ + "LEFT JOIN account_move m on (m.id=l.move_id)" \ "WHERE l.partner_id = %s " \ "AND l.account_id IN %s AND " + self.query +" " \ " " + RECONCILE_TAG + " "\ @@ -313,4 +314,4 @@ report_sxw.report_sxw('report.account.third_party_ledger_other', 'res.partner', 'addons/account/report/account_partner_ledger_other.rml',parser=third_party_ledger, header='internal') -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/account/report/account_partner_ledger.rml b/addons/account/report/account_partner_ledger.rml index 57ebc6f44e3..4136fdcc727 100644 --- a/addons/account/report/account_partner_ledger.rml +++ b/addons/account/report/account_partner_ledger.rml @@ -362,10 +362,10 @@ [[ line['code'] ]] - [[ line['ref'] ]] + [[ line['move_name'] ]] - [[ line['name'] ]] + b[[ (line['ref'] or '') + ' ' + line['name'] ]] [[ formatLang((line['debit'])) ]] @@ -487,10 +487,10 @@ [[ line['code'] ]] - [[ line['ref'] ]] + [[ line['move_name'] ]] - [[ line['name'] ]] + a[[ (line['ref'] or '') + ' ' + line['name'] ]] [[ formatLang((line['debit'])) ]] diff --git a/addons/account/report/account_partner_ledger_other.rml b/addons/account/report/account_partner_ledger_other.rml index 1869144cfc9..d34ffdbb7c7 100644 --- a/addons/account/report/account_partner_ledger_other.rml +++ b/addons/account/report/account_partner_ledger_other.rml @@ -431,7 +431,7 @@ - [[ display_currency(data) == False or removeParentNode('blockTable') ]] + [[ display_currency(data) == False or removeParentNode('blockTable') ]] Date @@ -508,7 +508,7 @@
[[ repeatIn(lines(p), 'line') ]] - [[ display_currency(data) == False or removeParentNode('blockTable') ]] + [[ display_currency(data) == False or removeParentNode('blockTable') ]] [[ formatLang(line['date'],date=True) ]] @@ -517,10 +517,10 @@ [[ line['code'] ]] - [[ line['ref'] ]] + [[ line['move_name'] ]] - [[ line['name'] ]] + [[ (line['ref'] or '')+ ' ' + line['name'] ]] [[ formatLang((line['debit'])) ]] @@ -628,7 +628,7 @@
[[ repeatIn(lines(p), 'line') ]] - [[ display_currency(data) == True or removeParentNode('blockTable') ]] + [[ display_currency(data) == True or removeParentNode('blockTable') ]] [[ formatLang(line['date'],date=True) ]] @@ -637,10 +637,10 @@ [[ line['code'] ]] - [[ line['ref'] ]] + [[ line['move_name'] ]] - [[ line['name'] ]] + [[ (line['ref'] or '') + ' ' + line['name'] ]] [[ formatLang((line['debit'])) ]] @@ -662,4 +662,4 @@
- \ No newline at end of file +