Ir al contenido
Menú
Se marcó esta pregunta
12548 Vistas

I am developing a module for Odoo v8 with a url controller.

When something goes wrong, I return an error 404 simply with:

return request.not_found()

 

But when everything is OK I would like to return to the client a status 200 with a json with some data, but have not a clue how to do it.

Any idea?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
abr 17
2962
0
feb 16
3307
1
may 25
720
0
ene 24
1477
2
may 23
8334