oca-web/odoo-bringout-oca-web-web_m2x_options/web_m2x_options/models/ir_http.py
Ernad Husremovic 53fddf87c8 Add oca-web submodule with 68 web modules
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 17:27:15 +02:00

11 lines
335 B
Python

from odoo import models
class Http(models.AbstractModel):
_inherit = "ir.http"
def session_info(self):
IrConfigSudo = self.env["ir.config_parameter"].sudo()
session_info = super().session_info()
session_info.update({"web_m2x_options": IrConfigSudo.get_web_m2x_options()})
return session_info