Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
251 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
déc. 22
12296
1
mai 22
3528
1
févr. 22
2423
0
avr. 20
3624
7
janv. 24
154248