Odoo Help

0

0
5 Answers
0
Avatar

Shameem Babu @ iWesabe Saudi Arabia

--Shameem Babu @ iWesabe--
GLOBAL CREATIVE CONCEPTS TECH CO LTD
http://www.iwesabe.com
1555
| 6 3 9
KHOBAR, Saudi Arabia
--Shameem Babu @ iWesabe--

  

 iWesabe - ODOO ERP IMPLEMENTATION & CUSTOMIZATION SAUDI ARABIA.



For Queries : pks.shameem@gmail.com ,shameem@iwesabe.com

Activities     :    Youtube

                           Stackoverflow 

Experience

           iWesabe                                ◉

           Axon Communications        ❍

           Cybrosys Technologies        ❍


Shameem Babu @ iWesabe Saudi Arabia
9/21/16, 3:40 AM

In Python

from openerp import http
print http.request.env['ir.config_parameter'].get_param('web.base.url') # BASE URL

print http.request.httprequest

print http.request.httprequest.full_path

In Javascript

window.location.href


1 Comment
Gokulakrishnan Murugesan India
3/5/19, 1:25 AM

In js, it will return the previous menu item url, In Python it does not return full url.

I need a menu id from current url.

3
Avatar
--deep--

Techno-Functional Associate with 7+ years of experience in Odoo (formerly known as OpenERP).

deep India
9/21/16, 2:58 AM

from openerp.http import request

print request.httprequest.url_root


Or: 

base_url = self.env['ir.config_parameter'].get_param('web.base.url')


1
Bhavik Bagadiya India
4/29/16, 12:23 AM

Hello Tessnim

you can try 

1 . 

from openerp.http import request

print(request.httprequest.__dict__)


or

2.  refer link

\ https://www.odoo.com/forum/help-1/question/how-to-get-url-of-current-page-29394


Thanx.

0
Vaidotas Stanevicius Lithuania
5/15/19, 1:52 AM

from odoo.http import request

check out/print:

request.httprequest.url

request.httprequest.base_url

request.httprequest.host_url

Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now