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
15 lines
799 B
XML
15 lines
799 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record model="ir.rule" id="res_partner_portal_members_rule">
|
|
<field name="name">res_partner: portal: read/write access on my profiles</field>
|
|
<field name="model_id" ref="base.model_res_partner" />
|
|
<field name="domain_force">['|','|',('contact_id', '=', 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])]</field>
|
|
<field name="groups" eval="[(4, ref('base.group_portal'))]" />
|
|
<field name="perm_read" eval="True" />
|
|
<field name="perm_write" eval="True" />
|
|
<field name="perm_create" eval="False" />
|
|
<field name="perm_unlink" eval="False" />
|
|
</record>
|
|
</odoo> |