diff --git a/account_asset_management/models/account_asset_line.py b/account_asset_management/models/account_asset_line.py index 80dba746..193d7a58 100644 --- a/account_asset_management/models/account_asset_line.py +++ b/account_asset_management/models/account_asset_line.py @@ -19,6 +19,7 @@ class AccountAssetLine(models.Model): required=True, ondelete="cascade", check_company=True, + index=True, ) previous_id = fields.Many2one( comodel_name="account.asset.line",