Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
260 Prikazi

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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
dec. 22
12302
1
maj 22
3539
1
feb. 22
2431
0
apr. 20
3632
7
jan. 24
154262