İçereği Atla
Menü
Bu soru işaretlendi
13015 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Nis 17
3164
0
Şub 16
3519
3
Tem 25
8861
1
May 25
1118
0
Oca 24
1806