Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
255 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 22
12296
1
mag 22
3528
1
feb 22
2423
0
apr 20
3624
7
gen 24
154248