Skip to Content
Menu
This question has been flagged
12984 Rodiniai

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?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
bal. 17
3144
0
vas. 16
3490
3
liep. 25
8792
1
geg. 25
1079
0
saus. 24
1772