[IMP] deleted attr parent_id, added coditional for context init or context end and not order for black account
parent
45efba42de
commit
ac0ea3826b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue