diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 7cddac9421e..56ac0b9af69 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -297,8 +297,14 @@ class AccountMove(models.Model): help='If this checkbox is ticked, this entry will be automatically posted at its date.') # ==== Reverse feature fields ==== - reversed_entry_id = fields.Many2one('account.move', string="Reversal of", readonly=True, copy=False, - check_company=True) + reversed_entry_id = fields.Many2one( + comodel_name='account.move', + string="Reversal of", + index='btree_not_null', + readonly=True, + copy=False, + check_company=True + ) reversal_move_id = fields.One2many('account.move', 'reversed_entry_id') # =========================================================