跳至内容
菜单
此问题已终结
1 回复
2946 查看

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)


形象
丢弃
相关帖文 回复 查看 活动
3
11月 21
2738
2
12月 19
3790
2
8月 25
2425
2
6月 25
774
3
6月 24
3599