跳至内容
菜单
此问题已终结
12674 查看

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
2998
0
2月 16
3344
1
5月 25
792
0
1月 24
1551
2
5月 23
8410