[IMP] All accounts are for all reports

pull/7/merge
Humberto Arocha 2013-06-19 17:23:33 -05:30
parent 8fb2a5591d
commit c53093a170
1 changed files with 4 additions and 2 deletions

View File

@ -439,6 +439,10 @@ 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'))]))
all_account_period = {} # todas las cuentas por periodo
if form['columns'] == 'thirteen':
for p_act in range(0, 13):
@ -454,8 +458,6 @@ class account_balance(report_sxw.rml_parse):
ctx_i = _ctx_init(self.context.copy())
ctx_to_use = _ctx_init(self.context.copy())
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)