Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
10259 Prikazi

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
Opusti
Best Answer

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

Avatar
Opusti
Avtor

Thanks so much. It helps me a lot

Related Posts Odgovori Prikazi Aktivnost
0
sep. 23
2097
0
sep. 23
1834
2
jun. 25
11323
6
okt. 23
22196
3
mar. 24
9586