I am currently using Odoo 12 and I need assistance in getting the active id from the URL instead of from the context. The reason for this is because the active_id/active_ids change to the selected values on the tree for the server action therefore i was wondering if it was possible to get the active_id that is currently in the URL or even retrieve the previous context as that has the ID i am looking for.
I tried using the http library to get the full URL such as the below code:
http.request.httprequest.__dict__
But it does not return the get paramaters.