Skip to Content
Menu
This question has been flagged
1 Reply
236 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
2
Dec 22
12283
1
May 22
3521
1
Feb 22
2414
0
Apr 20
3618
7
Jan 24
154224