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

Hi i want to get the active_id after being redirected to the new url,

Ps: it's an internal url

client_action = {

'type': 'ir.actions.act_url',

'name': "Besoins cahiers des charges",

'target': 'new',

'url': record_url,

'context':{'active_id':self.id},

}

return client_action

아바타
취소
베스트 답변

Since is ir.action.act_url so i think you should pass the active_id into the url directly because it's not like the normal ir.action.act_window , your url can be an external url or internal url, so if you pass directly like: https://a.com?active_id=12312321 then i think we should be good to retrieve it

아바타
취소
작성자

yes i passed it directly in the url and get it by using context.get and it works

Nice, so can i get a best answer or a up vote from you, i'll be very appreciated

관련 게시물 답글 화면 활동
1
4월 24
1736
1
5월 22
4418
1
4월 25
3205
0
6월 24
2079
0
6월 24
3