Skip to Content
मेन्यू
This question has been flagged
1 Reply
2875 Views

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?





Avatar
Discard
Author Best Answer

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

from odoo.http import request

print(request.httprequest.data)


Avatar
Discard
Related Posts Replies Views Activity
3
नव॰ 21
2656
2
दिस॰ 19
3745
2
अग॰ 25
2340
2
जून 25
669
3
जून 24
3507