This question has been flagged
1 Reply
2456 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.

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

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.

Author

some links would also help thanks!

Author

iam still getting this error

Author

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