16.0-fix-geolocalization #22
@@ -127,10 +127,6 @@ class res_partner(models.Model):
|
|||||||
and not res.public_profile_id
|
and not res.public_profile_id
|
||||||
):
|
):
|
||||||
res.create_public_profile()
|
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:
|
else:
|
||||||
res = super(res_partner, self).create(vals)
|
res = super(res_partner, self).create(vals)
|
||||||
return res
|
return res
|
||||||
|
|||||||
Reference in New Issue
Block a user