Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2997 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
3
nov. 21
2795
2
déc. 19
3830
2
août 25
2507
2
juin 25
910
3
juin 24
3695