[ADD] theme 12.0
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from . import main
|
||||
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import json
|
||||
|
||||
from odoo import http
|
||||
from odoo.http import request
|
||||
|
||||
class ThemeCommon(http.Controller):
|
||||
|
||||
@http.route('/theme_common/google_maps_api_key', type='json', auth='public', website=True)
|
||||
def google_maps_api_key(self):
|
||||
return json.dumps({
|
||||
'google_maps_api_key': request.website.google_maps_api_key or ''
|
||||
})
|
||||
Reference in New Issue
Block a user