Odoo Help

Welcome!

This community 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.

0

Why Query String Get Me Empty ?

By
Ali Abdelmonem Mustafa Amer
on 1/5/14, 10:35 AM 1,079 views

Hi , All

I Tried To Get Query String From The URL But It Return Me {} Empty This Is The URL localhost:8069/#id=6&view_type=form&model=purchase.order&action=523

I Tried Inside my Developed controllers > main.py

The Code Like That

wsgienv = req.httprequest.environ URL=wsgienv['HTTP_REFERER'] Query_String = dict(urlparse.parse_qsl(URL))

It Works the First Time After That It Didn't Work Again

So Please Any Help Me

0
Pinakin Nayi (pna)
On 1/6/14, 7:07 AM

Hi,

Have you tried with , query = dict(urlparse.parse_qsl(req.httprequest.query_string, keep_blank_values=True))

Thanks..

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 1/5/14, 10:35 AM
Seen: 1079 times
Last updated: 3/16/15, 8:10 AM