- Repo for opensource odoo website theme (since V13.0)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
449 B

5 years ago
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. import json
  4. from odoo import http
  5. from odoo.http import request
  6. class ThemeCommon(http.Controller):
  7. @http.route('/theme_common/google_maps_api_key', type='json', auth='public', website=True)
  8. def google_maps_api_key(self):
  9. return json.dumps({
  10. 'google_maps_api_key': request.website.google_maps_api_key or ''
  11. })