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

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
2988
0
2月 16
3327
1
5月 25
757
0
1月 24
1509
2
5月 23
8373