İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
242 Görünümler

I am archiving a One2many field via code but it still shows until I manually refresh the screen.

Can my code trigger this refresh?

Avatar
Vazgeç
En İyi Yanıt

Just return a client reload action at the end of your code:

def your_method(self):

​# your code ends with
  self.action_archive()

# line to add
  return { 'type': 'ir.actions.client', 'tag': 'reload' }
Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ara 22
12287
1
May 22
3526
1
Şub 22
2417
0
Nis 20
3624
7
Oca 24
154241