콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
9771 화면

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. 

아바타
취소
관련 게시물 답글 화면 활동
1
10월 23
8388
0
3월 15
3620
0
3월 15
3814
1
3월 15
5008
0
3월 25
759