From 2c9ecb911f6ffe10342e691e02fa05f7ddf15041 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 7 Feb 2013 09:19:54 +0100 Subject: [PATCH] Adapt error message accordingly. Fix a typo in an error message. bzr revid: alexis@via.ecp.fr-20130207081954-a1ahr7wr03rea3qv --- addons/account/wizard/account_validate_account_move.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/wizard/account_validate_account_move.py b/addons/account/wizard/account_validate_account_move.py index 6ebf040..ec938f0 100644 --- a/addons/account/wizard/account_validate_account_move.py +++ b/addons/account/wizard/account_validate_account_move.py @@ -36,7 +36,7 @@ class validate_account_move(osv.osv_memory): data = self.read(cr, uid, ids[0], context=context) ids_move = obj_move.search(cr, uid, [('state','=','draft'),('journal_id','in',tuple(data['journal_id'])),('period_id','in',tuple(data['period_id']))]) if not ids_move: - raise osv.except_osv(_('Warning!'), _('Specified journal does not have any account move entries in draft state for this period.')) + raise osv.except_osv(_('Warning!'), _('Specified journals do not have any account move entries in draft state for the specified periods.')) obj_move.button_validate(cr, uid, ids_move, context=context) return {'type': 'ir.actions.act_window_close'} @@ -58,7 +58,7 @@ class validate_account_move_lines(osv.osv_memory): move_ids.append(line.move_id.id) move_ids = list(set(move_ids)) if not move_ids: - raise osv.except_osv(_('Warning!'), _('Selected Entry Lines does not have any account move enties in draft state.')) + raise osv.except_osv(_('Warning!'), _('Selected Entry Lines does not have any account move entries in draft state.')) obj_move.button_validate(cr, uid, move_ids, context) return {'type': 'ir.actions.act_window_close'} validate_account_move_lines() -- 1.7.10.4