Skip to Content
Menú
This question has been flagged
1 Respondre
10242 Vistes

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

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

Avatar
Descartar
Autor

Thanks so much. It helps me a lot

Related Posts Respostes Vistes Activitat
0
de set. 23
2091
0
de set. 23
1832
2
de juny 25
11319
6
d’oct. 23
22185
3
de març 24
9581