From ac0ea3826be4f3035871c73731b63f69311cba7d Mon Sep 17 00:00:00 2001 From: Yanina Aular Date: Wed, 19 Jun 2013 13:11:28 -0530 Subject: [PATCH] [IMP] deleted attr parent_id, added coditional for context init or context end and not order for black account --- account_financial_report/report/parser.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/account_financial_report/report/parser.py b/account_financial_report/report/parser.py index cf7d89c7..ee939c8b 100644 --- a/account_financial_report/report/parser.py +++ b/account_financial_report/report/parser.py @@ -450,9 +450,6 @@ class account_balance(report_sxw.rml_parse): account_black_ids = account_obj.search(self.cr, self.uid, ([('id', 'in', [i[0] for i in account_ids]),('type','not in',('view','consolidation'))])) account_black = account_obj.browse(self.cr, self.uid, account_black_ids, ctx_to_use) - #account_black.sort(key=lambda x: x.level) - #account_black.reverse() - #account_black_ids = [i.id for i in account_black] account_not_black_ids = account_obj.search(self.cr, self.uid, ([('id', 'in', [i[0] for i in account_ids]),('type','in',('view','consolidation'))])) account_not_black = account_obj.browse(self.cr, self.uid, account_not_black_ids, ctx_to_use)