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

Hi everyone.

In a wizzard view I have a button returning pdf report in a 'ir.action.act_url'.  It works fine. Problem is that after the pdf appeared I would like the wizzard window to be closed automatically. To do this I can return close_window dict.

Separately this two 'return' work fine.

I would like to execute two actions, one after another. I found that this is possible using ir.action.server with multi attribute.

Unfortunately I couldn't find even one example. 

close_window = {'type': 'ir.actions.act_window_close'}

final_report = {
'type': 'ir.actions.act_url',
'url': '/web/binary/saveas?model=ir.attachment&field=datas&filename_field=name&id=' + str(file.id),
'target': 'self',
}

return final_report


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi, try to use state="multi" and give action_id = 'action_id' where next action to be executed

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I was trying to apply what Hilar AK said, but with no luck. Have you resolved this? It would be nice to see an example of it. 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 23
8356
0
มี.ค. 15
3591
0
มี.ค. 15
3784
1
มี.ค. 15
4978
0
มี.ค. 25
734