Skip to content

Commit

Permalink
Add index on partner_company_group
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Feb 2, 2024
1 parent 4e69fbf commit e0e04fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partner_company_group/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Contact(models.Model):
_inherit = "res.partner"

company_group_id = fields.Many2one(
"res.partner", "Company group", domain=[("is_company", "=", True)]
"res.partner", "Company group", domain=[("is_company", "=", True)], index=True
)

def _commercial_fields(self):
Expand Down

0 comments on commit e0e04fe

Please sign in to comment.