[FIX] partner_profiles_portal: issue with structure writing rights
It was impossible to read or edit structure profiles from the portal. Solved with: - the add of a dependency to "partner_contact_in_several_companies" add-on - the modification of a security rule to consider the structure public profile
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user