Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
10247 Visninger

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
Kassér
Bedste svar

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

Avatar
Kassér
Forfatter

Thanks so much. It helps me a lot

Related Posts Besvarelser Visninger Aktivitet
0
sep. 23
2092
0
sep. 23
1832
2
jun. 25
11320
6
okt. 23
22190
3
mar. 24
9582