[IMP] account : Improved the error message

bzr revid: mdi@tinyerp.com-20111213044148-c98n11r8vta387i8
This commit is contained in:
Divyesh Makwana (Open ERP) 2011-12-13 10:11:48 +05:30
parent c2aae9e46c
commit 430734a449
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class account_period_close(osv.osv_memory):
for id in context['active_ids']:
account_move_ids = account_move_obj.search(cr, uid, [('period_id', '=', id), ('state', '=', "draft")], context=context)
if account_move_ids:
raise osv.except_osv(_('Invalid action !'), _('In order to close a period, you must first post related journal items.'))
raise osv.except_osv(_('Invalid action !'), _('In order to close a period, you must first post related journal entries.'))
cr.execute('update account_journal_period set state=%s where period_id=%s', (mode, id))
cr.execute('update account_period set state=%s where id=%s', (mode, id))