@http.route('/test_url/print_json', auth='public', type='json', cors="*", csrf=False)
def print_json(self, **post):
return {"msg":"ok"}
I expect to get JSON {"msg":"ok"}
but actually going to return {"jsonrpc":"2.0","id":null,"result":{"msg":"ok"}}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
@http.route('/test_url/print_json', auth='public', type='json', cors="*", csrf=False)
def print_json(self, **post):
return {"msg":"ok"}
I expect to get JSON {"msg":"ok"}
but actually going to return {"jsonrpc":"2.0","id":null,"result":{"msg":"ok"}}
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
0
ene 23
|
3074 | |||
|
2
sept 20
|
12979 | |||
|
2
ago 25
|
3553 | |||
|
Controller not working
Resuelto
|
2
jun 25
|
2033 | ||
|
3
jun 24
|
4794 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.