From d92d56dc6f4d22e622382030e787b7ae96c6e1ef Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 23 Nov 2011 17:24:18 +0100 Subject: [PATCH] [IMP] account_followup: changing again the way to group lines in followup report in multi currency cases bzr revid: qdp-launchpad@openerp.com-20111123162418-9qcdfw1sswxi2pc1 --- addons/account_followup/report/account_followup_print.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account_followup/report/account_followup_print.py b/addons/account_followup/report/account_followup_print.py index f2cf476e674..56004cebde3 100644 --- a/addons/account_followup/report/account_followup_print.py +++ b/addons/account_followup/report/account_followup_print.py @@ -64,9 +64,9 @@ class report_rappel(report_sxw.rml_parse): line_cur = {base_currency.id: {'line': []}} for line in movelines: - if line.account_id.currency_id and (not line.account_id.currency_id.id in line_cur): - line_cur[line.account_id.currency_id.id] = {'line': []} - currency = line.account_id.currency_id or line.company_id.currency_id + if line.currency_id and (not line.currency_id.id in line_cur): + line_cur[line.currency_id.id] = {'line': []} + currency = line.currency_id or line.company_id.currency_id line_data = { 'name': line.move_id.name, 'ref': line.ref,