Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
246 Widoki

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

Can my code trigger this refresh?

Awatar
Odrzuć
Najlepsza odpowiedź

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' }
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 22
12288
1
maj 22
3527
1
lut 22
2418
0
kwi 20
3624
7
sty 24
154244