콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3157 화면

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
2981
2
12월 19
3989
2
8월 25
2755
2
6월 25
1232
3
7월 24
4018