コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
244 ビュー

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

Can my code trigger this refresh?

アバター
破棄
最善の回答

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' }
アバター
破棄
関連投稿 返信 ビュー 活動
2
12月 22
12287
1
5月 22
3526
1
2月 22
2417
0
4月 20
3624
7
1月 24
154241