Browse Source

[CLN] Limpieza de Prints

6.0
Humberto Arocha 12 years ago
parent
commit
d294ed50f3
  1. 15
      account_financial_report/report/parser.py
  2. 2
      account_financial_report/wizard/wizard.py

15
account_financial_report/report/parser.py

@ -261,13 +261,8 @@ class account_balance(report_sxw.rml_parse):
credit_account_ids = self.get_company_accounts(form['company_id'] and type(form['company_id']) in (list,tuple) and form['company_id'][0] or form['company_id'],'credit')
print 'Primer print de credit_account_ids ', credit_account_ids
debit_account_ids = self.get_company_accounts(form['company_id'] and type(form['company_id']) in (list,tuple) and form['company_id'][0] or form['company_id'],'debit')
print 'Primer print de debit_account_ids ', debit_account_ids
if form.get('fiscalyear'):
if type(form.get('fiscalyear')) in (list,tuple):
fiscalyear = form['fiscalyear'] and form['fiscalyear'][0]
@ -283,17 +278,9 @@ class account_balance(report_sxw.rml_parse):
credit_account_ids = _get_children_and_consol(self.cr, self.uid, credit_account_ids, 100,self.context,change_sign=True)
print 'credit_account_ids ', credit_account_ids
debit_account_ids = _get_children_and_consol(self.cr, self.uid, debit_account_ids, 100,self.context,change_sign=True)
print 'debit_account_ids ', debit_account_ids
credit_account_ids = list(set(credit_account_ids) - set(debit_account_ids))
print 'Segundo print de credit_account_ids ', credit_account_ids
#
# Generate the report lines (checking each account)
@ -381,7 +368,6 @@ class account_balance(report_sxw.rml_parse):
if form['columns'] == 'qtr':
pn = 1
print 'PERIODOS DEL QTR ', p
for p_id in p:
form['periods'] = p_id
@ -644,7 +630,6 @@ class account_balance(report_sxw.rml_parse):
})
result_acc.append(res2)
print 100 * 'FIN ', result_acc
return result_acc
report_sxw.report_sxw('report.afr.1cols',

2
account_financial_report/wizard/wizard.py

@ -199,8 +199,6 @@ class wizard_report(osv.osv_memory):
if data['form']['columns'] == 'thirteen':
name = 'afr.13cols'
print 'NOMBRE DEL REPORTE, ', name
return {'type': 'ir.actions.report.xml', 'report_name': name, 'datas': data}
wizard_report()
Loading…
Cancel
Save