Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6740 มุมมอง

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

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)

ผู้เขียน คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 22
2931
2
พ.ค. 18
9512
2
ก.ค. 25
1284
1
พ.ค. 25
805
System redirect to a wrong url แก้ไขแล้ว
1
พ.ค. 25
748