mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] Use exceptions import on account_default_draft_move
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
##############################################################################
|
||||
|
||||
from openerp import models, api
|
||||
from openerp import exceptions
|
||||
from openerp.tools.translate import _
|
||||
|
||||
|
||||
@@ -47,7 +48,7 @@ class AccountMove(models.Model):
|
||||
continue
|
||||
else:
|
||||
if not line.journal_id.update_posted:
|
||||
raise models.except_orm(
|
||||
raise exceptions.except_orm(
|
||||
_('Error!'),
|
||||
_('You cannot modify a posted entry of this journal.'
|
||||
'First you should set the journal to allow'
|
||||
|
||||
Reference in New Issue
Block a user