Skip to Content
Menu
This question has been flagged
12649 Zobrazenia

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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
apr 17
2997
0
feb 16
3342
1
máj 25
776
0
jan 24
1527
2
máj 23
8388