Browse Source

[IMP] Field target_move is added to template in afr so that it will

used in the future to filter posted and unposted entries
pull/7/merge
Humberto Arocha 11 years ago
parent
commit
8d57b7a79b
  1. 4
      account_financial_report/model/account_financial_report.py
  2. 1
      account_financial_report/view/account_financial_report_view.xml

4
account_financial_report/model/account_financial_report.py

@ -51,6 +51,9 @@ class account_financial_report(osv.osv):
'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'),
@ -69,6 +72,7 @@ class account_financial_report(osv.osv):
'date_from': lambda *a: time.strftime('%Y-%m-%d'),
'date_to': lambda *a: time.strftime('%Y-%m-%d'),
'filter': lambda *a: 'byperiod',
'target_move': 'posted',
}
def copy(self, cr, uid, id, defaults, context=None):

1
account_financial_report/view/account_financial_report_view.xml

@ -30,6 +30,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_id" on_change='onchange_columns(columns,fiscalyear_id,period_ids)'

Loading…
Cancel
Save