oca-technical/odoo-bringout-oca-server-ux-announcement/announcement/models/ir_http.py
2025-08-29 15:43:03 +02:00

12 lines
363 B
Python

# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class IrHttp(models.AbstractModel):
_inherit = "ir.http"
def session_info(self):
res = super(IrHttp, self).session_info()
res["announcements"] = self.env["res.users"].get_announcements()
return res