コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3010 ビュー

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
2810
2
12月 19
3862
2
8月 25
2531
2
6月 25
939
3
6月 24
3725