I am developing a module for Odoo v8 with a url controller.
When something goes wrong, I return an error 404 simply with:
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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/13/15, 6:52 AM|
|Seen: 720 times|
|Last updated: 3/16/15, 8:10 AM|