mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 11:12:04 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
from . import ir_http
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue