跳至內容
選單
此問題已被標幟
12743 瀏覽次數

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?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
4月 17
3008
0
2月 16
3365
3
7月 25
8508
1
5月 25
826
0
1月 24
1597