[IMP] partner_profile: remove copy of private data in public profile
This commit is contained in:
@@ -125,6 +125,10 @@ class res_partner(models.Model):
|
|||||||
return self[fname]
|
return self[fname]
|
||||||
|
|
||||||
def _get_public_profile_fields(self):
|
def _get_public_profile_fields(self):
|
||||||
|
# Return the fields to copy in the public profile when it is created.
|
||||||
|
# The data copied depend on the partner's type: we consider the company data as public,
|
||||||
|
# whereas the personal data shouldn't be public by default.
|
||||||
|
if self.is_company:
|
||||||
fields = [
|
fields = [
|
||||||
"name",
|
"name",
|
||||||
"function",
|
"function",
|
||||||
@@ -139,7 +143,8 @@ class res_partner(models.Model):
|
|||||||
"is_company",
|
"is_company",
|
||||||
"lang",
|
"lang",
|
||||||
]
|
]
|
||||||
# Return the fields to copy in the public profile when it is created.
|
else:
|
||||||
|
fields = ["name"]
|
||||||
return fields
|
return fields
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
Reference in New Issue
Block a user