Hi.
Is it possible for a custom module to listen on a specific URL (eg www.myodooserver.com/listentothis) for post requests (from another API) or would this have to be done via nginx and another python script?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi.
Is it possible for a custom module to listen on a specific URL (eg www.myodooserver.com/listentothis) for post requests (from another API) or would this have to be done via nginx and another python script?
Yes, you can do it by creating an http.Controller class, like:
from openerp import http
class Home(http.Controller):@http.route('/listentothis', type='http', auth="none")
def index(self):
return "hello world"
Know more read here:
http://www.odoo.com/documentation/9.0/reference/http.html
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
wrz 23
|
2066 | ||
|
0
wrz 23
|
1813 | ||
|
2
cze 25
|
11293 | ||
How to edit the product website description
Rozwiązane
|
|
6
paź 23
|
22139 | |
|
3
mar 24
|
9558 |