mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 14:31:59 +02:00
20 lines
666 B
Python
20 lines
666 B
Python
# Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
|
|
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import models
|
|
|
|
|
|
class Http(models.AbstractModel):
|
|
_inherit = "ir.http"
|
|
|
|
def session_info(self):
|
|
result = super(Http, self).session_info()
|
|
config = self.env["ir.config_parameter"].sudo()
|
|
result.update(
|
|
{
|
|
"leaflet.tile_url": config.get_param("leaflet.tile_url", default=""),
|
|
"leaflet.copyright": config.get_param("leaflet.copyright", default=""),
|
|
}
|
|
)
|
|
return result
|