Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
13251 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Apr 17
3387
0
Feb 16
3808
3
Jul 25
9217
1
Mei 25
1446
0
Jan 24
2073