Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
235 Lượt xem

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

Can my code trigger this refresh?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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' }
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 22
12280
1
thg 5 22
3519
1
thg 2 22
2411
0
thg 4 20
3618
7
thg 1 24
154213