odoo/ext/custom-addons/web_google_maps/controllers/main.py

13 lines
344 B
Python

# -*- coding: utf-8 -*-
from odoo import http
class Main(http.Controller):
@http.route('/web/map_theme', type='json', auth='user')
def map_theme(self):
ICP = http.request.env['ir.config_parameter'].sudo()
theme = ICP.get_param('google.maps_theme', default='default')
res = {'theme': theme}
return res