From 8d57b7a79b9d9bd1bf98db5a21d8de995c9a5c70 Mon Sep 17 00:00:00 2001 From: Humberto Arocha Date: Thu, 25 Jul 2013 18:34:18 +0000 Subject: [PATCH] [IMP] Field target_move is added to template in afr so that it will used in the future to filter posted and unposted entries --- account_financial_report/model/account_financial_report.py | 4 ++++ .../view/account_financial_report_view.xml | 1 + 2 files changed, 5 insertions(+) diff --git a/account_financial_report/model/account_financial_report.py b/account_financial_report/model/account_financial_report.py index 46acb7d0..12d23aaa 100644 --- a/account_financial_report/model/account_financial_report.py +++ b/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): diff --git a/account_financial_report/view/account_financial_report_view.xml b/account_financial_report/view/account_financial_report_view.xml index 40cd1d8f..6306ba76 100644 --- a/account_financial_report/view/account_financial_report_view.xml +++ b/account_financial_report/view/account_financial_report_view.xml @@ -30,6 +30,7 @@ +