diff --git a/partner_firstname/models/res_partner.py b/partner_firstname/models/res_partner.py index 67824a23ce2..1222b3c4786 100644 --- a/partner_firstname/models/res_partner.py +++ b/partner_firstname/models/res_partner.py @@ -110,7 +110,9 @@ def copy(self, default=None): @api.model def default_get(self, fields_list): """Invert name when getting default values.""" - if "firstname" in fields_list or "lastname" in fields_list: + if ( + "firstname" in fields_list or "lastname" in fields_list + ) and "name" not in fields_list: fields_list.append("name") result = super().default_get(fields_list)