[IMP] account_followup: changing again the way to group lines in followup report...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Wed, 23 Nov 2011 16:24:18 +0000 (17:24 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Wed, 23 Nov 2011 16:24:18 +0000 (17:24 +0100)
bzr revid: qdp-launchpad@openerp.com-20111123162418-9qcdfw1sswxi2pc1

addons/account_followup/report/account_followup_print.py

index f2cf476..56004ce 100644 (file)
@@ -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,