Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
10398 Ansichten

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
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Autor

Thanks so much. It helps me a lot

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Sept. 23
2375
0
Sept. 23
2094
2
Juni 25
11631
6
Okt. 23
22675
3
März 24
9949