コンテンツへスキップ
メニュー
この質問にフラグが付けられました
13020 ビュー

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
3164
0
2月 16
3521
3
7月 25
8861
1
5月 25
1120
0
1月 24
1809