diff --git a/partner_firstname/models/res_partner.py b/partner_firstname/models/res_partner.py index e27997841..b9b6bfe7d 100644 --- a/partner_firstname/models/res_partner.py +++ b/partner_firstname/models/res_partner.py @@ -14,8 +14,14 @@ class ResPartner(models.Model): """Adds last name and first name; name becomes a stored function field.""" _inherit = 'res.partner' - firstname = fields.Char("First name") - lastname = fields.Char("Last name") + firstname = fields.Char( + "First name", + index=True, + ) + lastname = fields.Char( + "Last name", + index=True, + ) name = fields.Char( compute="_compute_name", inverse="_inverse_name_after_cleaning_whitespace",