Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
12989 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
apr. 17
3148
0
feb. 16
3500
3
jul. 25
8817
1
maj 25
1097
0
jan. 24
1787