diff --git a/account_default_draft_move/account.py b/account_default_draft_move/account.py index 464c9ee14..93e9554eb 100644 --- a/account_default_draft_move/account.py +++ b/account_default_draft_move/account.py @@ -33,9 +33,9 @@ class account_move(orm.Model): if invoice: valid_moves = self.validate(cr, uid, ids, context) if not valid_moves: - raise osv.except_osv(_('Integrity Error !'), _('''You can not validate a non-balanced entry!\n \ - Make sure you have configured payment terms properly!\n \ - The latest payment term line should be of the type "Balance" !''')) + raise osv.except_osv(_('Integrity Error'), _('''You can not validate a non-balanced entry.\n \ + Make sure you have configured payment terms properly.\n \ + The latest payment term line should be of the type "Balance".''')) move_obj = self.pool.get('account.move') move_obj.write(cr, uid, valid_moves, {'state': 'draft'}, context=context) @@ -51,10 +51,10 @@ class account_move(orm.Model): raise osv.except_osv(_('Error'), _('You can not modify a posted entry of closed periods')) ## Change the test of line state instead of journal type elif line.state == 'posted': - raise osv.except_osv(_('Error'), _('''You can not modify a posted entry of this journal!\n \ + raise osv.except_osv(_('Error'), _('''You can not modify a posted entry of this journal.\n \ You should set the journal to allow cancelling entries if you want to do that.''')) if ids: move_obj = self.pool.get('account.move') move_obj.write(cr, uid, ids, {'state': 'draft'}, context=context) return True -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: