diff --git a/account_exception/__manifest__.py b/account_exception/__manifest__.py
index b3350d0b..e1cf8c04 100644
--- a/account_exception/__manifest__.py
+++ b/account_exception/__manifest__.py
@@ -16,7 +16,6 @@ Custom exceptions on journal entries
'account',
],
'data': [
- # 'demo/account_exception_demo.xml',
'security/ir.model.access.csv',
'views/account_move_views.xml',
'wizard/account_move_exception_confirm_views.xml',
diff --git a/account_exception/demo/account_exception_demo.xml b/account_exception/demo/account_exception_demo.xml
index 6a1317fd..706215d2 100644
--- a/account_exception/demo/account_exception_demo.xml
+++ b/account_exception/demo/account_exception_demo.xml
@@ -6,7 +6,7 @@
No phone number on customer
50
account.move
- failed = journal_entry.move_type == 'out_invoice' and not journal_entry.partner_id.phone
+ failed = self.move_type == 'out_invoice' and not self.partner_id.phone
diff --git a/account_exception/models/account_move.py b/account_exception/models/account_move.py
index 0a3075a7..14a3de60 100644
--- a/account_exception/models/account_move.py
+++ b/account_exception/models/account_move.py
@@ -22,13 +22,6 @@ class ExceptionRule(models.Model):
class AccountMove(models.Model):
_inherit = ['account.move', 'base.exception']
_name = "account.move"
- _order = 'main_exception_id asc, date desc, name desc, id desc'
-
- @api.model
- def _exception_rule_eval_context(self, rec):
- res = super(AccountMove, self)._exception_rule_eval_context(rec)
- res['journal_entry'] = rec
- return res
@api.model
def _reverse_field(self):