For example my browser URL is "http://localhost:8069/web?&debug=#id=2863&view_type=form&model=ir.attachment&action=582&active_id=17"
I tried following request object but didn't get url as I need
request.httprequest.host - localhost:8069
request.httprequest.host_url - http://localhost:8069/
request.httprequest.remote_addr - 127.0.0.1
request.httprequest.url - http://localhost:8069/web/dataset/call_button
request.httprequest.base_url - http://localhost:8069/web/dataset/call_button
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/26/15, 1:25 PM|
|Seen: 1215 times|
|Last updated: 4/28/16, 12:43 PM|