Browse Source

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

pull/79/head
Yanina Aular 11 years ago
parent
commit
0ce526dd30
  1. 3
      account_financial_report/report/parser.py

3
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)

Loading…
Cancel
Save