콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
12998 화면

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
3153
0
2월 16
3501
3
7월 25
8843
1
5월 25
1105
0
1월 24
1798