diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 1fa1b0e30af39476d152e62da509f0e15484a068..d382db1b85b4712dae00f40db1519ace068b6ea1 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -194,6 +194,7 @@ class AccountMove(models.Model): payment_reference = fields.Char(string='Payment Reference', index=True, copy=False, help="The payment reference to set on journal items.") payment_id = fields.Many2one( + index=True, comodel_name='account.payment', string="Payment", copy=False, check_company=True) statement_line_id = fields.Many2one(