mirror of
https://gitlab.com/flectra-community/server-ux.git
synced 2024-11-24 07:02:07 +00:00
13 lines
354 B
Python
13 lines
354 B
Python
# Copyright 2024 Tecnativa - David Vidal
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
from flectra import models
|
|
|
|
|
|
class IrHttp(models.AbstractModel):
|
|
_inherit = "ir.http"
|
|
|
|
def session_info(self):
|
|
res = super().session_info()
|
|
res["announcements"] = self.env["res.users"].get_announcements()
|
|
return res
|