From 28b673783f4a702d6dfb161585096c2691bed1c5 Mon Sep 17 00:00:00 2001 From: Humberto Arocha Date: Fri, 26 Jul 2013 04:51:07 +0000 Subject: [PATCH] [FIX] Avoid duplicating accounts when there are Consolidating Accounts --- account_financial_report/report/parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/account_financial_report/report/parser.py b/account_financial_report/report/parser.py index 1a55b739..c1196eeb 100644 --- a/account_financial_report/report/parser.py +++ b/account_financial_report/report/parser.py @@ -453,10 +453,13 @@ class account_balance(report_sxw.rml_parse): ('type', 'not in', ('view', 'consolidation'))])) + account_black_ids = list(set(account_black_ids)) + c_account_not_black_ids = account_obj.search(self.cr, self.uid, ([ ('id', 'in', account_consol_ids), ('type', '=', 'view')])) - + account_not_black_ids = list(set(account_not_black_ids) - set(c_account_not_black_ids)) + # This could be done quickly with a sql sentence account_not_black = account_obj.browse( self.cr, self.uid, account_not_black_ids)