odoo route with sudo code example
Example: from odoo.http import Controller, dispatch rpc, request, route
{"jsonrpc": "2.0", "id": null, "error": {"message": "Odoo Server Error", "code": 200, "data": {"debug": "Traceback (most recent call last):\n File \"/home/opencons/herramientas/odoo-8.0/openerp/http.py\", line 537, in _handle_exception\n return super(JsonRequest, self)._handle_exception(exception)\n File \"/home/opencons/herramientas/odoo-8.0/openerp/http.py\", line 1422, in _dispatch_nodb\n func, arguments = self.nodb_routing_map.bind_to_environ(request.httprequest.environ).match()\n File \"/usr/lib/python2.7/dist-packages/werkzeug/routing.py\", line 1433, in match\n raise NotFound()\nNotFound: 404: Not Found\n", "message": "", "name": "werkzeug.exceptions.NotFound", "arguments": []}}}