Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
12888 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
3073
0
thg 2 16
3423
3
thg 7 25
8682
1
thg 5 25
1006
0
thg 1 24
1692