From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/website_google_map/controllers/__init__.py | 4 ++ addons/website_google_map/controllers/main.py | 61 +++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 addons/website_google_map/controllers/__init__.py create mode 100644 addons/website_google_map/controllers/main.py (limited to 'addons/website_google_map/controllers') diff --git a/addons/website_google_map/controllers/__init__.py b/addons/website_google_map/controllers/__init__.py new file mode 100644 index 00000000..5d4b25db --- /dev/null +++ b/addons/website_google_map/controllers/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import main diff --git a/addons/website_google_map/controllers/main.py b/addons/website_google_map/controllers/main.py new file mode 100644 index 00000000..b4ad02a5 --- /dev/null +++ b/addons/website_google_map/controllers/main.py @@ -0,0 +1,61 @@ +# -*- 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 +from odoo.tools import html_escape as escape + + +class GoogleMap(http.Controller): + ''' + This class generates on-the-fly partner maps that can be reused in every + website page. To do so, just use an ``