Skip to Content
Menu
This question has been flagged
1 Atsakyti
10255 Rodiniai

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


Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius

Thanks so much. It helps me a lot

Related Posts Replies Rodiniai Veikla
0
rugs. 23
2095
0
rugs. 23
1834
2
birž. 25
11321
6
spal. 23
22193
3
kov. 24
9585