Prevents the modification of the company type of res.partner:
- if partner is a public or a position profile
- if the partner has position profiles attached
Also synchronize the company type between main and public profiles.
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.
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
The names in the different profiles must be synchronised only at the
creation. And if the name of one profile is modified, the others must
keep their own name.