Se rendre au contenu
Menu
Cette question a été signalée
12906 Vues

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
Ignorer
Publications associées Réponses Vues Activité
0
avr. 17
3077
0
févr. 16
3431
3
juil. 25
8703
1
mai 25
1012
0
janv. 24
1700