Odoo Help


How to access a js or py file directly from url ?

Komala Kiran Kumar. Parepalli
on 11/25/13, 4:02 AM 1,890 views

Hi Every one, I am here in a situation to access a file (js/py) present in some location in the openerp instance by using a simple url. And when ever we give the url in any browser it should that file and execute the code. Is there any such posibility.

If Yes, Please reply with a possibile procedure and location of file to be and url format to access the code

you can use mod_wsgi in apache and wsgi file to execute a python file but ur question is not clear to understand put some example

on 12/27/13, 1:59 AM

Beware: the methods to write web controllers for V7 (using 'httprequest') is different than it is for V8 (using 'route'). Also note that the documentation in trunk is meant for V8+, it will not work on V7 (ask me how I know)

Michael Watchorn
on 2/24/14, 11:41 PM

Hi i came to know that we can call a python function by using a openerp controller methods to handle a Http request or a Json request in openerp.

Thanks for the support.

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.


Odoo Training Center

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

Test it now

Question tools

0 follower(s)


Asked: 11/25/13, 4:02 AM
Seen: 1890 times
Last updated: 3/16/15, 8:10 AM