Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
13085 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
3226
0
thg 2 16
3580
3
thg 7 25
8931
1
thg 5 25
1185
0
thg 1 24
1863