Skip to Content
Menu
This question has been flagged
1 Atsakyti
230 Rodiniai

I am archiving a One2many field via code but it still shows until I manually refresh the screen.

Can my code trigger this refresh?

Portretas
Atmesti
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' }
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 22
12280
1
geg. 22
3519
1
vas. 22
2411
0
bal. 20
3618
7
saus. 24
154213