Skip to Content
मेन्यू
This question has been flagged
13208 Views

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
Discard
Related Posts Replies Views Activity
0
अप्रैल 17
3367
0
फ़र॰ 16
3749
3
जुल॰ 25
9164
1
मई 25
1407
0
जन॰ 24
2036