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