跳至內容
選單
此問題已被標幟
1 回覆
3219 瀏覽次數

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
1786
1
5月 22
4494
1
4月 25
3294
0
6月 24
2132
0
6月 24
3