diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-09-02 16:28:28 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-09-02 16:28:28 +0200 |
| commit | 54e5bbdf3531ecfee84fb6aae627d346c2425c30 (patch) | |
| tree | 2920139e3f9b019371cb2f332a53e0ab5ff8d142 /addons/website_customer/controllers/main.py | |
| parent | 198c080b3512e8b7fbcd9ab47d15746776d5d1a6 (diff) | |
| parent | 897b9b8fc0548c5165d30b7f20b47aa00e918f1d (diff) | |
[MERGE] forward port branch saas-10 up to 897b9b8
Diffstat (limited to 'addons/website_customer/controllers/main.py')
| -rw-r--r-- | addons/website_customer/controllers/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website_customer/controllers/main.py b/addons/website_customer/controllers/main.py index e7a68808a57..d5a0dc1052c 100644 --- a/addons/website_customer/controllers/main.py +++ b/addons/website_customer/controllers/main.py @@ -85,6 +85,7 @@ class WebsiteCustomer(http.Controller): context=request.context) google_map_partner_ids = ','.join(map(str, partner_ids)) partners = partner_obj.browse(request.cr, openerp.SUPERUSER_ID, partner_ids, request.context) + google_maps_api_key = request.env['ir.config_parameter'].sudo().get_param('google_maps_api_key') tag_obj = request.registry['res.partner.tag'] tag_ids = tag_obj.search(cr, uid, [('website_published', '=', True), ('partner_ids', 'in', partner_ids)], @@ -103,6 +104,7 @@ class WebsiteCustomer(http.Controller): 'search_path': "?%s" % werkzeug.url_encode(post), 'tag': tag, 'tags': tags, + 'google_maps_api_key': google_maps_api_key, } return request.website.render("website_customer.index", values) |
