Skip to Content
Menú
This question has been flagged
1 Respondre
223 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
2
de des. 22
12278
1
de maig 22
3515
1
de febr. 22
2407
0
d’abr. 20
3616
7
de gen. 24
154206