Skip to Content
Menu
This question has been flagged
1 Reply
9544 Views

Hi, I have a certain field that I want to modify but It's not possible for me to do that 'coz I'm restricted by the record rule. So what I'm going to do is to use SUPERUSER_ID but I don't know how to do it. Any help?

Ex.

    self.write({'to_approve_by':[(6,0,[to_approve_by])]})

'to_approve_by' is a many2many field


Avatar
Discard
Best Answer

self.sudo().write({'to_approve_by':[(6,0,[to_approve_by])]})

Avatar
Discard
Author

Thanks so much. It helps me a lot

Related Posts Replies Views Activity
0
Sep 23
497
0
Sep 23
450
2
Feb 23
9253
6
Oct 23
19278
3
Mar 24
7694