diff --git a/partner_profiles/__manifest__.py b/partner_profiles/__manifest__.py
index 436bce0..f8fcd2e 100644
--- a/partner_profiles/__manifest__.py
+++ b/partner_profiles/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "partner_profiles",
- "version": "12.0.1.0.0",
+ "version": "12.0.1.0.1",
"author": "Elabore",
"website": "https://elabore.coop",
"maintainer": "Stéphan Sainléger",
diff --git a/partner_profiles_portal/__manifest__.py b/partner_profiles_portal/__manifest__.py
index 3b6089d..98bfcda 100644
--- a/partner_profiles_portal/__manifest__.py
+++ b/partner_profiles_portal/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "partner_profiles_portal",
- "version": "12.0.1.0.0",
+ "version": "12.0.1.0.1",
"author": "Elabore",
"website": "https://elabore.coop",
"maintainer": "Stéphan Sainléger",
@@ -13,6 +13,7 @@
# any module necessary for this one to work correctly
"depends": [
"base",
+ "partner_contact_in_several_companies",
"partner_profiles",
"portal",
"website",
diff --git a/partner_profiles_portal/models/res_partner.py b/partner_profiles_portal/models/res_partner.py
index a1ff012..3eb9777 100644
--- a/partner_profiles_portal/models/res_partner.py
+++ b/partner_profiles_portal/models/res_partner.py
@@ -39,6 +39,9 @@ class res_partner(models.Model):
"other_contact_ids",
"other_contact_ids.edit_structure_main_profile",
"other_contact_ids.edit_structure_public_profile",
+ "child_ids",
+ "child_ids.edit_structure_main_profile",
+ "child_ids.edit_structure_public_profile",
)
def _compute_can_edit(self):
for partner in self:
diff --git a/partner_profiles_portal/security/members_security.xml b/partner_profiles_portal/security/members_security.xml
index a0fdde0..a7267cf 100644
--- a/partner_profiles_portal/security/members_security.xml
+++ b/partner_profiles_portal/security/members_security.xml
@@ -4,9 +4,11 @@
res_partner: portal: read/write access on my profiles
['|','|',('contact_id', '=', user.partner_id.id),
- ('can_edit_main_profile_ids', 'in', [user.partner_id.id]),
- ('can_edit_public_profile_ids', 'in', [user.partner_id.id])]
+ ('can_edit_main_profile_ids', 'in', [user.partner_id.id]),
+ ('contact_id.can_edit_public_profile_ids', 'in', [user.partner_id.id])]
+
+