[IMP] partner_profiles: remove useless fields in public profile view
Hides from the partner public form view the fields and data not considered as relevant for public profile. The public profile aims to protect the contact data, but not to replace the other ones which are considered as "administrative" data.
This commit is contained in:
@@ -157,7 +157,6 @@ class res_partner(models.Model):
|
||||
if self.is_company:
|
||||
fields = [
|
||||
"name",
|
||||
"function",
|
||||
"phone",
|
||||
"mobile",
|
||||
"email",
|
||||
@@ -168,7 +167,6 @@ class res_partner(models.Model):
|
||||
"country_id",
|
||||
"zip",
|
||||
"is_company",
|
||||
"lang",
|
||||
]
|
||||
else:
|
||||
fields = ["name"]
|
||||
|
Reference in New Issue
Block a user