diff --git a/partner_external_map/README.rst b/partner_external_map/README.rst index 0d1af0086..9e8a530a9 100644 --- a/partner_external_map/README.rst +++ b/partner_external_map/README.rst @@ -34,11 +34,11 @@ of the address) if this information is present on the partner. Configuration ============= -If you want to create additionnal map websites, go to the menu +If you want to create additional map websites, go to the menu *Settings > Technical > Map Websites > Map Websites*. You are -invited to send the configuration information of your additionnal map websites -to one of the authors of the module, so that the module can be updated with more -pre-configured map websites. +invited to send the configuration information of your additional map websites +to one of the authors of the module, so that the module can be updated with +more pre-configured map websites. Usage ===== @@ -54,7 +54,7 @@ or a route map. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/134/10.0 + :target: https://runbot.odoo-community.org/runbot/134/11.0 Known issues / Roadmap ====================== @@ -76,8 +76,10 @@ Credits Contributors ------------ -* Alexis de Lattre -* Pedro M. Baeza +* Akretion (http://www.akretion.com): + * Alexis de Lattre +* Tecnativa (https://www.tecnativa.com): + * Pedro M. Baeza Maintainer ---------- diff --git a/partner_external_map/__manifest__.py b/partner_external_map/__manifest__.py index 85c6f4968..4e08ee95c 100644 --- a/partner_external_map/__manifest__.py +++ b/partner_external_map/__manifest__.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- -# © 2015-2016 Akretion (Alexis de Lattre ) -# © 2016 Pedro M. Baeza +# Copyright 2015-2016 Akretion - Alexis de Lattre +# Copyright 2016-2017 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Partner External Maps', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'category': 'Extra Tools', 'license': 'AGPL-3', 'summary': 'Add Map and Map Routing buttons on partner form to ' @@ -13,8 +13,10 @@ 'author': 'Akretion, ' 'Tecnativa, ' 'Odoo Community Association (OCA)', - 'website': 'http://www.akretion.com', - 'depends': ['base'], + 'website': 'https://github.com/OCA/partner-contact', + 'depends': [ + 'base', + ], 'data': [ 'views/res_partner_view.xml', 'views/map_website_view.xml', diff --git a/partner_external_map/models/res_partner.py b/partner_external_map/models/res_partner.py index 22ee85bce..1ccccdc5b 100644 --- a/partner_external_map/models/res_partner.py +++ b/partner_external_map/models/res_partner.py @@ -35,10 +35,10 @@ class ResPartner(models.Model): @api.model def _prepare_url(self, url, replace): assert url, 'Missing URL' - for key, value in replace.iteritems(): - if not isinstance(value, (str, unicode)): + for key, value in replace.items(): + if not isinstance(value, str): # for latitude and longitude which are floats - value = unicode(value) + value = str(value) url = url.replace(key, value) logger.debug('Final URL: %s', url) return url