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

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
3143
0
2月 16
3489
3
7月 25
8789
1
5月 25
1079
0
1月 24
1772