Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
12556 Zobrazení

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šit
Related Posts Odpovědi Zobrazení Aktivita
0
dub 17
2965
0
úno 16
3311
1
kvě 25
724
0
led 24
1483
2
kvě 23
8340