Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
10248 Vistas

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
Mejor respuesta

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

Avatar
Descartar
Autor

Thanks so much. It helps me a lot

Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 23
2092
0
sept 23
1832
2
jun 25
11320
6
oct 23
22190
3
mar 24
9582