# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models class IrHttp(models.AbstractModel): _inherit = 'ir.http' @api.model def lazy_session_info(self): res = super().lazy_session_info() res['iot_channel'] = self.env['iot.channel'].get_iot_channel() return res