Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
10241 Vizualizări

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


Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

Thanks so much. It helps me a lot

Related Posts Răspunsuri Vizualizări Activitate
0
sept. 23
2089
0
sept. 23
1831
2
iun. 25
11316
6
oct. 23
22185
3
mar. 24
9581