[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:
Stéphan Sainléger
2023-04-18 09:26:35 +02:00
committed by Stéphan Sainléger
parent 2e63b1216f
commit 4401cfab79
3 changed files with 51 additions and 7 deletions

View File

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