Skip to Content
Menu
This question has been flagged

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

Avatar
Discard
Author

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`

Related Posts Replies Views Activity
1
Jan 22
1648
3
Feb 19
9481
3
Jul 18
3540
1
Mar 15
5511
5
Mar 24
20728