Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
13330 Vizualizări

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?

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
apr. 17
3467
0
feb. 16
3867
3
iul. 25
9292
1
mai 25
1497
0
ian. 24
2123