From 46f017c53b9303a4e6d254c1b3d2560e5904c3e9 Mon Sep 17 00:00:00 2001 From: Humberto Arocha Date: Thu, 25 Jul 2013 18:26:24 +0000 Subject: [PATCH] [IMP] Field target_move is added to wizard in afr so that it will used in the future to filter posted and unposted entries --- account_financial_report/view/wizard.xml | 1 + account_financial_report/wizard/wizard.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/account_financial_report/view/wizard.xml b/account_financial_report/view/wizard.xml index 4136bfb1..76deeaff 100644 --- a/account_financial_report/view/wizard.xml +++ b/account_financial_report/view/wizard.xml @@ -47,6 +47,7 @@ + diff --git a/account_financial_report/wizard/wizard.py b/account_financial_report/wizard/wizard.py index be9ff1eb..8e392f09 100644 --- a/account_financial_report/wizard/wizard.py +++ b/account_financial_report/wizard/wizard.py @@ -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):