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

can anyone point me in the right direction for making a get request in openerp

By
eoin ahern
on 3/17/14, 1:16 PM 679 views

I was wondering can anyone help me out. I need to make a get request in open erp to retrieve JSON data. i was trying to use a regular class with urllib2 and the json import but this obviously isnt sticking with the rules of the framework. If I have to use http.py how do I use it? should I import it or Extend the http.py class. I tried to import using the following import command but I was getting an error

from openerp.web import http

honestly this frameowrk is doing my head in at this stage.

0

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 3/17/14, 2:28 PM

hi;

missing addons

from openerp.addons.web import http

Due to lack of developer documentation (for OpenERP), what I can advise you is to read the code in existing modules, and get inspired by existing examples.

There are thousands of modules and examples (for V7.0) on the web.

If you want, and if that can help you, i can post some links.

thanks Med! yeah obviously reading the code would be a good idea. it would be so much easier if there was some decent tutorials out there, or better documentation.

eoin ahern
on 3/17/14, 8:43 PM

some links would also help thanks!

eoin ahern
on 3/17/14, 8:44 PM

iam still getting this error

eoin ahern
on 3/17/14, 8:56 PM

Traceback (most recent call last): File "C:/OpenERP 7.0-20140221-003045/Server/server/openerp/addons/Absyla_Plugin/WebCall.py", line 1, in <module> from openerp.addons.web import http File "C:\OpenERP 7.0-20140221-003045\Server\server\openerp__init__.py", line 39, in <module> import addons File "C:\OpenERP 7.0-20140221-003045\Server\server\openerp\addons__init__.py", line 38, in <module> from openerp.modules import get_module_resource, get_module_path File "C:\OpenERP 7.0-20140221-003045\Server\server\openerp\modules__init__.py", line 27, in <module> from . import db

eoin ahern
on 3/17/14, 8:58 PM

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: 3/17/14, 1:16 PM
Seen: 679 times
Last updated: 3/16/15, 8:10 AM