[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:
committed by
Stéphan Sainléger
parent
2e63b1216f
commit
4401cfab79
@@ -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