Skip to Content
मेन्यू
This question has been flagged
1 Reply
227 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
दिस॰ 22
12279
1
मई 22
3517
1
फ़र॰ 22
2408
0
अप्रैल 20
3617
7
जन॰ 24
154209