diff --git a/partner_profiles/models/res_partner.py b/partner_profiles/models/res_partner.py index 281c922..d0ef228 100644 --- a/partner_profiles/models/res_partner.py +++ b/partner_profiles/models/res_partner.py @@ -127,10 +127,6 @@ class res_partner(models.Model): and not res.public_profile_id ): res.create_public_profile() - if res.partner_profile.ref == "partner_profile_public": #TODO: replace by check on boolean is_public_profile ? Is this boolean computed at this step of the process? - # Public profile can't be customer or supplier. Only main or position profiles can - res.customer = False - res.supplier = False else: res = super(res_partner, self).create(vals) return res