Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1 @@
from . import ir_http

View file

@ -0,0 +1,20 @@
# 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