Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3156 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
apr 24
1738
1
mag 22
4422
1
apr 25
3206
0
giu 24
2080
0
giu 24
3