Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
11
web_m2x_options/models/ir_http.py
Executable file
11
web_m2x_options/models/ir_http.py
Executable file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user