'filter':fields.selection([('bydate','By Date'),('byperiod','By Period'),('all','By Date and Period'),('none','No Filter')],'Date/Period Filter'),
'fiscalyear':fields.many2one('account.fiscalyear','Fiscal year',help='Keep empty to use all open fiscal years to compute the balance',required=True),
'periods':fields.many2many('account.period','rel_wizard_period','wizard_id','period_id','Periods',help='All periods in the fiscal year if empty'),
'currency_id':fields.many2one('res.currency','Currency',help="Currency at which this report will be expressed. If not selected will be used the one set in the company"),
'inf_type':fields.selection([('bgen','Balance Sheet'),('IS','Income Statement'),('bcom','Balance Comprobacion'),('edogp','Estado Ganancias y Perdidas'),('bml','Libro Mayor Legal')],'Tipo Informe',required=True),
'fiscalyear':fields.many2one('account.fiscalyear','Fiscal year',help='Fiscal Year for this report',required=True),
'periods':fields.many2many('account.period','rel_wizard_period','wizard_id','period_id','Periods',help='All periods in the fiscal year if empty'),
'tot_check':fields.boolean('Summarize?',help='Checking will add a new line at the end of the Report which will Summarize Columns in Report'),
'lab_str':fields.char('Description',help='Description for the Summary',size=128),
#~ Deprecated fields
'filter':fields.selection([('bydate','By Date'),('byperiod','By Period'),('all','By Date and Period'),('none','No Filter')],'Date/Period Filter'),
'date_to':fields.date('End date'),
'tot_check':fields.boolean('Show Total'),
'lab_str':fields.char('Description',size=128),
'inf_type':fields.selection([('bgen','Balance Sheet'),('IS','Income Statement'),('bcom','Balance Comprobacion'),('edogp','Estado Ganancias y Perdidas'),('bml','Libro Mayor Legal')],'Tipo Informe',required=True),
'currency_id':fields.many2one('res.currency','Secondary Currency',help="Forces all values for this report to be expressed in this secondary currency."),
'date_from':fields.date('Start date'),
}
_defaults={
@ -56,7 +61,7 @@ class wizard_report(osv.osv_memory):