diff --git a/addons/account/report/central_journal.py b/addons/account/report/central_journal.py index d9aeae99abd..47237901905 100644 --- a/addons/account/report/central_journal.py +++ b/addons/account/report/central_journal.py @@ -66,7 +66,7 @@ class journal_print(report_sxw.rml_parse, common_report_header): return super(journal_print, self).set_context(objects, data, ids, report_type) def lines(self, period_id, journal_id): - self.cr.execute('SELECT a.currency_id ,a.code, a.name, c.code AS currency_code, l.amount_currency ,SUM(debit) AS debit, SUM(credit) AS credit from account_move_line l LEFT JOIN account_account a ON (l.account_id=a.id) LEFT JOIN res_currency c on (l.currency_id=c.id)WHERE l.period_id=%s AND l.journal_id=%s '+self.query_get_clause+' GROUP BY a.id, a.code, a.name,l.amount_currency,c.code , a.currency_id', (period_id, journal_id)) + self.cr.execute('SELECT a.currency_id ,a.code, a.name, c.code AS currency_code,l.currency_id ,l.amount_currency ,SUM(debit) AS debit, SUM(credit) AS credit from account_move_line l LEFT JOIN account_account a ON (l.account_id=a.id) LEFT JOIN res_currency c on (l.currency_id=c.id)WHERE l.period_id=%s AND l.journal_id=%s '+self.query_get_clause+' GROUP BY a.id, a.code, a.name,l.amount_currency,c.code , a.currency_id,l.currency_id', (period_id, journal_id)) res = self.cr.dictfetchall() return res def _set_get_account_currency_code(self, account_id): diff --git a/addons/account/report/central_journal.rml b/addons/account/report/central_journal.rml index 8c5231cabe6..bcec84f5550 100644 --- a/addons/account/report/central_journal.rml +++ b/addons/account/report/central_journal.rml @@ -345,7 +345,7 @@