Is data that was supplied to write()
with parameter (vals
) accessible from within method check_access_rights
?
I inherited from res.partner
and overriden method check_access_rights
with intent to allow a user with no write rights on res.partner
to update child_ids
(of that partner) if that child was created by that user (create_uid = user.id) .
Odoo v10
I hope to be able to implement somewhere (in methods write or check_access_rights) this pseudo-code:
if `the user belongs to a group "GroupX"` and `user tries to only update field "child_ids" with records that are created by that user`
then `allow this write operation on res.partner`
else `raise AccessError`