Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
243 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 22
12287
1
kvě 22
3526
1
úno 22
2417
0
dub 20
3624
7
led 24
154241