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

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 24
1756
1
พ.ค. 22
4434
1
เม.ย. 25
3228
0
มิ.ย. 24
2086
0
มิ.ย. 24
3