Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
219 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 22
12273
1
may 22
3514
1
feb 22
2399
0
abr 20
3611
7
ene 24
154196