From d2cc72b3a8b1603641d9c2de7bc8df27c4b1cdeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Tue, 15 Nov 2022 10:33:32 +0100 Subject: [PATCH] [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. --- partner_profiles/models/res_partner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/partner_profiles/models/res_partner.py b/partner_profiles/models/res_partner.py index cb06b44..1c7f082 100644 --- a/partner_profiles/models/res_partner.py +++ b/partner_profiles/models/res_partner.py @@ -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 ##################################################################################