16.0-fix-geolocalization #22

Open
stephansainleger wants to merge 2 commits from 16.0-fix-geolocalization into 16.0
Showing only changes of commit ca00968b63 - Show all commits

View File

@@ -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