[IMP] deleted attr parent_id, added coditional for context init or context end and not order for black account

pull/7/merge
Yanina Aular 2013-06-19 13:11:28 -05:30
parent 45efba42de
commit ac0ea3826b
1 changed files with 0 additions and 3 deletions

View File

@ -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_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 = 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_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) account_not_black = account_obj.browse(self.cr, self.uid, account_not_black_ids, ctx_to_use)