Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
12645 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 17
2997
0
thg 2 16
3342
1
thg 5 25
776
0
thg 1 24
1526
2
thg 5 23
8388