Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
13269 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
3398
0
thg 2 16
3825
3
thg 7 25
9226
1
thg 5 25
1451
0
thg 1 24
2089