From 1e46fc8bb2f9eccdb4ecb9476367af8908d1af07 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 30 Jun 2021 20:33:47 +0200 Subject: [PATCH] [MIG] partner_external_map from v13 to v14 Remove map website openstreetmap FR because its query URL doesn't work anymore Use street3 if the OCA module partner_address_street3 is installed Add sequence and active fields on map website object --- partner_external_map/__manifest__.py | 4 +-- .../data/map_website_data.xml | 7 ----- partner_external_map/models/map_website.py | 3 +++ partner_external_map/models/res_partner.py | 12 ++++----- partner_external_map/models/res_users.py | 6 ++--- partner_external_map/readme/DESCRIPTION.rst | 7 +++-- .../views/map_website_view.xml | 27 ++++++++++++++++--- .../views/res_partner_view.xml | 4 +-- partner_external_map/views/res_users_view.xml | 20 +++++++++----- .../odoo/addons/partner_external_map | 1 + setup/partner_external_map/setup.py | 6 +++++ 11 files changed, 61 insertions(+), 36 deletions(-) create mode 120000 setup/partner_external_map/odoo/addons/partner_external_map create mode 100644 setup/partner_external_map/setup.py diff --git a/partner_external_map/__manifest__.py b/partner_external_map/__manifest__.py index 317fc7d80..491a8050f 100644 --- a/partner_external_map/__manifest__.py +++ b/partner_external_map/__manifest__.py @@ -5,12 +5,12 @@ { "name": "Partner External Maps", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Extra Tools", "license": "AGPL-3", "summary": "Add Map and Map Routing buttons on partner form to " "open GMaps, OSM, Bing and others", - "author": "Akretion, " "Tecnativa, " "Odoo Community Association (OCA)", + "author": "Akretion, Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/partner-contact", "depends": ["base"], "data": [ diff --git a/partner_external_map/data/map_website_data.xml b/partner_external_map/data/map_website_data.xml index 9a9cb0062..ba19caebe 100644 --- a/partner_external_map/data/map_website_data.xml +++ b/partner_external_map/data/map_website_data.xml @@ -30,13 +30,6 @@ name="route_lat_lon_url" >https://www.openstreetmap.org/directions/?engine=orsm_car&route={START_LATITUDE},{START_LONGITUDE};{DEST_LATITUDE},{DEST_LONGITUDE} - - OpenStreetMap FR - http://tile.openstreetmap.fr/?q={ADDRESS} - http://tile.openstreetmap.fr/?zoom=15&lat={LATITUDE}&lon={LONGITUDE} - Bing Maps ` * `MapQuest ` -If the module *base_geolocalize* from the official addons is installed on the -system, it will use the latitude and longitude to localize the partner (instead -of the address) if this information is present on the partner. +If partner has the latitude and longitude information, Odoo will use that +information instead of the address. diff --git a/partner_external_map/views/map_website_view.xml b/partner_external_map/views/map_website_view.xml index 4e3adee2b..fd1580b5e 100644 --- a/partner_external_map/views/map_website_view.xml +++ b/partner_external_map/views/map_website_view.xml @@ -9,12 +9,19 @@ map.website
+ +
@@ -24,20 +31,32 @@ map.website +
+ + map.website.search + map.website + + + + + + + + Map Websites map.website tree,form -