[FIX] partner_profile: prevent sync between profiles' name

The names in the different profiles must be synchronised only at the
creation. And if the name of one profile is modified, the others must
keep their own name.
This commit is contained in:
Stéphan Sainléger
2022-11-15 10:33:32 +01:00
parent 50de81c997
commit d2cc72b3a8

View File

@@ -167,6 +167,11 @@ class res_partner(models.Model):
partner.create(values)
partner._compute_public_profile_id()
def _contact_fields(self):
""" Returns the list of contact fields that are synced from the parent
when a partner is attached to him. """
return ['title']
##################################################################################
## Planned actions
##################################################################################