Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
13309 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
abr. 17
3444
0
fev. 16
3853
3
jul. 25
9251
1
mai. 25
1471
0
jan. 24
2104