Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
2960 Prikazi

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
Opusti
Avtor 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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
nov. 21
2742
2
dec. 19
3800
2
avg. 25
2440
2
jun. 25
814
3
jun. 24
3615