Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
250 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
dez. 22
12296
1
mai. 22
3528
1
fev. 22
2423
0
abr. 20
3624
7
jan. 24
154248