Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
13328 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
apr 17
3464
0
feb 16
3866
3
lug 25
9284
1
mag 25
1493
0
gen 24
2116