Partner External Maps
partner_external_map · OCA/partner-contact
partner_external_maps (9.0)-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 10 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE res_users SET context_route_start_partner_id = partner_id WHERE context_route_start_partner_id IS NULL;` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module adds buttons on the partner form to open a new tab with the map or the route to the address of the partner.
- Each user can select the map website he wants to use in its preferences.
- There are now two buttons on the partner form view: one to open a regular map on the address of the partner, and another one to open an itinerary map from the start address configured in the preferences of the user to the address of the partner.
This module supports several map websites:
- Google Maps <https://www.google.com/maps>
- OpenStreetMap <https://www.openstreetmap.org/>
- Bing Maps <https://www.bing.com/maps/>
- Here Maps <https://www.here.com/>
- MapQuest <http://www.mapquest.com/>
If partner has the latitude and longitude information, Odoo will use that information instead of the address.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
map_website_form |
map.website.form | map.website | form | New |
map_website_search |
map.website.search | map.website | search | New |
map_website_tree |
map.website.tree | map.website | list | New |
res_config_settings_view_form |
res.config.settings | form | Inherits base_setup.res_config_settings_view_form | |
view_partner_form |
map.button.res.partner.form | res.partner | form | Inherits base.view_partner_form |
view_users_form |
map.res.users.form | res.users | form | Inherits base.view_users_form |
view_users_form_simple_modif |
map.preferences.res.users.form | res.users | form | Inherits base.view_users_form_simple_modif |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
activeBooleandefault=True -
address_urlCharhelp='In this URL, {ADDRESS} will be replaced by the address.'string='URL that uses the address' -
lat_lon_urlCharhelp="In this URL, {LATITUDE} and {LONGITUDE} will be replaced by the latitude and longitude (requires the module 'base_geolocalize')"string='URL that uses latitude and longitude' -
nameCharrequired=Truestring='Map Website Name' -
route_address_urlCharhelp='In this URL, {START_ADDRESS} and {DEST_ADDRESS} will be replaced by the start and destination addresses.'string='Route URL that uses the addresses' -
route_lat_lon_urlCharhelp="In this URL, {START_LATITUDE}, {START_LONGITUDE}, {DEST_LATITUDE} and {DEST_LONGITUDE} will be replaced by the latitude and longitude of the start and destination adresses (requires the module 'base_geolocalize')."string='Route URL that uses latitude and longitude' -
sequenceIntegerdefault=10
-
get_default_map_website(self)@api.model -
get_default_route_map_website(self)@api.model
-
map_website_idMany2one → map.websitecomodel_name='map.website'config_parameter='partner_external_map.default_map_website_id'domain=['|', ('address_url', '!=', False), ('lat_lon_url', '!=', False)]string='Map Website' -
route_map_website_idMany2one → map.websitecomodel_name='map.website'config_parameter='partner_external_map.default_route_map_website_id'domain=['|', ('route_address_url', '!=', False), ('route_lat_lon_url', '!=', False)]string='Route Map Website'
No public methods.
No new fields.
Public methods (2)-
open_map(self) -
open_route_map(self)
-
context_map_website_idMany2one → map.websitedefault=<expr>domain=['|', ('address_url', '!=', False), ('lat_lon_url', '!=', False)]string='Map Website' args: 'map.website' -
context_route_map_website_idMany2one → map.websitedefault=<expr>domain=['|', ('route_address_url', '!=', False), ('route_lat_lon_url', '!=', False)]help='Map provided used when you click on the car icon on the partner form to display an itinerary.'string='Route Map Website' args: 'map.website' -
context_route_start_partner_idMany2one → res.partnerstring='Start Address for Route Map' args: 'res.partner'
-
create(self, vals_list)@api.model_create_multiOn creation, if no starting partner is provided, assign the current created one.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…