[FIX]partner_profiles:avoid automatic creation of society type public profile
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "partner_profiles",
|
||||
"version": "16.0.1.0.0",
|
||||
"version": "16.0.1.0.1",
|
||||
"author": "Elabore",
|
||||
"website": "https://elabore.coop",
|
||||
"maintainer": "Stéphan Sainléger",
|
||||
|
@@ -232,6 +232,7 @@ class res_partner(models.Model):
|
||||
"contact_id": partner.id,
|
||||
"partner_profile": profile.id,
|
||||
"company_id": partner.company_id.id,
|
||||
"is_company": partner.is_company,
|
||||
}
|
||||
public_fields = partner._get_public_profile_fields()
|
||||
for field_name in public_fields:
|
||||
|
@@ -20,7 +20,7 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='parent_id']" position="replace" />
|
||||
<xpath expr="//field[@name='is_company']/.." position="after">
|
||||
<group name="profile_data" class="bg-200">
|
||||
<group name="profile_data" class="bg-200 mb24">
|
||||
<field name="partner_profile" readonly="1" invisible="1" />
|
||||
<field name="is_main_profile" readonly="1" invisible="1" />
|
||||
<field name="is_public_profile" readonly="1" invisible="1" />
|
||||
|
Reference in New Issue
Block a user