mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[TYPO] removed exclamation points from error messages
This commit is contained in:
@@ -33,9 +33,9 @@ class account_move(orm.Model):
|
|||||||
if invoice:
|
if invoice:
|
||||||
valid_moves = self.validate(cr, uid, ids, context)
|
valid_moves = self.validate(cr, uid, ids, context)
|
||||||
if not valid_moves:
|
if not valid_moves:
|
||||||
raise osv.except_osv(_('Integrity Error !'), _('''You can not validate a non-balanced entry!\n \
|
raise osv.except_osv(_('Integrity Error'), _('''You can not validate a non-balanced entry.\n \
|
||||||
Make sure you have configured payment terms properly!\n \
|
Make sure you have configured payment terms properly.\n \
|
||||||
The latest payment term line should be of the type "Balance" !'''))
|
The latest payment term line should be of the type "Balance".'''))
|
||||||
move_obj = self.pool.get('account.move')
|
move_obj = self.pool.get('account.move')
|
||||||
move_obj.write(cr, uid, valid_moves, {'state': 'draft'}, context=context)
|
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'))
|
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
|
## Change the test of line state instead of journal type
|
||||||
elif line.state == 'posted':
|
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.'''))
|
You should set the journal to allow cancelling entries if you want to do that.'''))
|
||||||
if ids:
|
if ids:
|
||||||
move_obj = self.pool.get('account.move')
|
move_obj = self.pool.get('account.move')
|
||||||
move_obj.write(cr, uid, ids, {'state': 'draft'}, context=context)
|
move_obj.write(cr, uid, ids, {'state': 'draft'}, context=context)
|
||||||
return True
|
return True
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|||||||
Reference in New Issue
Block a user