Odoo Help


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.


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

komala kiran kumar. Parepalli
on 11/25/13, 4:02 AM 1,095 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.

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)


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