From ad97722b1b35aff50d0adf13a19715f7b8373c07 Mon Sep 17 00:00:00 2001 From: Richard Sassine Date: Tue, 4 May 2021 18:00:38 +0300 Subject: initial commit --- partner_external_map/models/map_website.py | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 partner_external_map/models/map_website.py (limited to 'partner_external_map/models/map_website.py') diff --git a/partner_external_map/models/map_website.py b/partner_external_map/models/map_website.py new file mode 100644 index 0000000..6b34e6b --- /dev/null +++ b/partner_external_map/models/map_website.py @@ -0,0 +1,34 @@ +# Copyright 2015 Akretion (Alexis de Lattre ) +# Copyright 2016 Akretion (Alexis de Lattre ) +# Copyright 2016 Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class MapWebsite(models.Model): + _name = "map.website" + _description = "Map Website" + + name = fields.Char(string="Map Website Name", required=True) + address_url = fields.Char( + string="URL that uses the address", + help="In this URL, {ADDRESS} will be replaced by the address.", + ) + lat_lon_url = fields.Char( + string="URL that uses latitude and longitude", + help="In this URL, {LATITUDE} and {LONGITUDE} will be replaced by " + "the latitude and longitude (requires the module 'base_geolocalize')", + ) + route_address_url = fields.Char( + string="Route URL that uses the addresses", + help="In this URL, {START_ADDRESS} and {DEST_ADDRESS} will be " + "replaced by the start and destination addresses.", + ) + route_lat_lon_url = fields.Char( + string="Route URL that uses latitude and longitude", + help="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').", + ) -- cgit v1.2.3