From fe95af9cb17e72980570528fffe114e9167b259d Mon Sep 17 00:00:00 2001 From: mtr Date: Tue, 12 Oct 2010 11:51:18 +0530 Subject: [PATCH] [IMP] account:-improvements in the account_period bzr revid: mtr@mtr-20101012062118-becppnmojeegnjtc --- addons/account/account.py | 2 +- addons/account/account_end_fy.xml | 2 +- addons/account/account_view.xml | 2 +- addons/account/wizard/account_period_close_view.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index ac50c25cd6b..bf5e25a6f69 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -838,7 +838,7 @@ class account_period(osv.osv): 'date_start': fields.date('Start of Period', required=True, states={'done':[('readonly',True)]}), 'date_stop': fields.date('End of Period', required=True, states={'done':[('readonly',True)]}), 'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', required=True, states={'done':[('readonly',True)]}, select=True), - 'state': fields.selection([('draft','Draft'), ('done','Done')], 'State', readonly=True, + 'state': fields.selection([('draft','Open'), ('done','Closed')], 'State', readonly=True, help='When monthly periods are created. The state is \'Draft\'. At the end of monthly period it is in \'Done\' state.'), 'company_id': fields.related('fiscalyear_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True) } diff --git a/addons/account/account_end_fy.xml b/addons/account/account_end_fy.xml index a33544ffacc..76d40bc89dc 100644 --- a/addons/account/account_end_fy.xml +++ b/addons/account/account_end_fy.xml @@ -6,8 +6,8 @@ Close a Period account.period form - [('state','=','draft')] + {'search_default_draft': 1} After closing a period, you will no longer be able to post entries to the period once it has been closed. - + diff --git a/addons/account/wizard/account_period_close_view.xml b/addons/account/wizard/account_period_close_view.xml index 161a3f424fc..5d3351246a3 100644 --- a/addons/account/wizard/account_period_close_view.xml +++ b/addons/account/wizard/account_period_close_view.xml @@ -34,7 +34,7 @@ - + Close a Period client_action_multi action