تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
12846 أدوات العرض

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
أبريل 17
3028
0
فبراير 16
3389
3
يوليو 25
8575
1
مايو 25
870
0
يناير 24
1644