Adapt error message accordingly.
authorAlexis de Lattre <alexis@via.ecp.fr>
Thu, 7 Feb 2013 08:19:54 +0000 (09:19 +0100)
committerAlexis de Lattre <alexis@via.ecp.fr>
Thu, 7 Feb 2013 08:19:54 +0000 (09:19 +0100)
Fix a typo in an error message.

bzr revid: alexis@via.ecp.fr-20130207081954-a1ahr7wr03rea3qv

addons/account/wizard/account_validate_account_move.py

index 6ebf040..ec938f0 100644 (file)
@@ -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()