I have wirtten a controllers in an Odoo module.There is no problem using postman to test the interface in the debug environment based on http.However,there is some problem using postman to test the interface in the production environment based on https.
Python version 2.7.12
Odoo version 10.0
werkzeug version 0.11.11
Here is my code.Please help me,thank you.
Production environment and the protocol is https.
controllers.py
# -*- coding:utf-8 -*-
from odoo.http import Controller
from odoo.http import route
from odoo.http import request
class PhotoPruner(Controller):
@route('/<string:type>/photo/size/<int:record_id>', type='http', auth='none', methods=['GET'], csrf=False)
def get_info(self, **kwargs):
type = kwargs.get('type')
record_id = kwargs.get('record_id')
return 'ok'
Debug environment and the protocol is http
There is no problem.
I receive the 'ok' when I get the http://127.0.0.1/task/photo/size/146

