Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
10408 Tampilan

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
Buang
Jawaban Terbai

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

Avatar
Buang
Penulis

Thanks so much. It helps me a lot

Post Terkait Replies Tampilan Aktivitas
0
Sep 23
2389
0
Sep 23
2104
2
Jun 25
11644
6
Okt 23
22691
3
Mar 24
9983