Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3133 มุมมอง

I'm have a problem when I don't get any data in my controller. An external data is sending POST request to my controller but I don't get the data. The external service sends an XML.


My controller

@http.route(['/payment/ack/callback/'], methods=['POST'], auth='none', csrf=False)
def ack_callback(self, **post):
	_logger.error(u'DEBUG: Callback post: {}'.format(post))
	# request.env['payment.transaction'].sudo().form_feedback(post, 'ack')
	return werkzeug.utils.redirect('/payment/process')

Is it maybe in the http.request?





อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

The data is stored in odoo http request object. Found it when run with debug.

from odoo.http import request

print(request.httprequest.data)


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ย. 21
2949
Overriding "Product" in odoo 12 website? แก้ไขแล้ว
2
ธ.ค. 19
3976
2
ส.ค. 25
2710
Controller not working แก้ไขแล้ว
2
มิ.ย. 25
1193
3
ก.ค. 24
3953