Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
234 มุมมอง

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' }
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 22
12280
1
พ.ค. 22
3519
1
ก.พ. 22
2411
0
เม.ย. 20
3618
7
ม.ค. 24
154213