How to get JSON data in an Odoo controller?
问题 I am trying to send some JSON data to an Odoo controller, but when I send the request, I always get 404 as response. This is the code of my controller: import openerp.http as http import logging _logger = logging.getLogger(__name__) class Controller(http.Controller): @http.route('/test/result', type='json', auth='public') def index(self, **args): _logger.info('The controller is called.') return '{"response": "OK"}' Now, I type the URL ( http://localhost:8069/test/result ) on the browser to