Skip to Content
Menú
This question has been flagged
13050 Vistes

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
Related Posts Respostes Vistes Activitat
0
d’abr. 17
3205
0
de febr. 16
3567
3
de jul. 25
8916
1
de maig 25
1172
0
de gen. 24
1843