Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
10280 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
2106
0
sep. 23
1838
2
jun. 25
11326
6
okt. 23
22208
3
mar. 24
9604