[IMP] Field target_move is added to wizard in afr so that it will
used in the future to filter posted and unposted entriespull/7/merge
parent
8621858924
commit
46f017c53b
|
@ -47,6 +47,7 @@
|
|||
<group string="Accounts Info">
|
||||
<field name="display_account" required="True" />
|
||||
<field name="display_account_level" required="True" />
|
||||
<field name="target_move"/>
|
||||
</group>
|
||||
<group string="FiscalYear Info">
|
||||
<field name="fiscalyear" on_change='onchange_columns(columns,fiscalyear,periods)' domain="[('company_id','=',company_id)]"/>
|
||||
|
|
|
@ -54,6 +54,9 @@ class wizard_report(osv.osv_memory):
|
|||
'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),
|
||||
|
||||
'target_move': fields.selection([('posted', 'All Posted Entries'),
|
||||
('all', 'All Entries'),
|
||||
], 'Target Moves', help='Print All Accounting Entries or just Posted Accounting Entries'),
|
||||
#~ 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'),
|
||||
|
@ -70,6 +73,7 @@ class wizard_report(osv.osv_memory):
|
|||
'fiscalyear': lambda self, cr, uid, c: self.pool.get('account.fiscalyear').find(cr, uid),
|
||||
'display_account': lambda *a: 'bal_mov',
|
||||
'columns': lambda *a: 'five',
|
||||
'target_move': 'posted',
|
||||
}
|
||||
|
||||
def onchange_inf_type(self, cr, uid, ids, inf_type, context=None):
|
||||
|
|
Loading…
Reference in New Issue