Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
10265 Vues

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Auteur

Thanks so much. It helps me a lot

Publications associées Réponses Vues Activité
0
sept. 23
2101
0
sept. 23
1835
2
juin 25
11324
6
oct. 23
22199
3
mars 24
9591