Skip to Content
Menu
This question has been flagged
1 Atsakyti
3131 Rodiniai

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?





Portretas
Atmesti
Autorius 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)


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
lapkr. 21
2947
2
gruod. 19
3974
2
rugp. 25
2706
2
birž. 25
1193
3
liep. 24
3948