You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.4 KiB

  1. # Copyright 2015 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  2. # Copyright 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  3. # Copyright 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. from odoo import models, fields
  6. class MapWebsite(models.Model):
  7. _name = 'map.website'
  8. _description = 'Map Website'
  9. name = fields.Char(string='Map Website Name', required=True)
  10. address_url = fields.Char(
  11. string='URL that uses the address',
  12. help="In this URL, {ADDRESS} will be replaced by the address.")
  13. lat_lon_url = fields.Char(
  14. string='URL that uses latitude and longitude',
  15. help="In this URL, {LATITUDE} and {LONGITUDE} will be replaced by "
  16. "the latitude and longitude (requires the module 'base_geolocalize')")
  17. route_address_url = fields.Char(
  18. string='Route URL that uses the addresses',
  19. help="In this URL, {START_ADDRESS} and {DEST_ADDRESS} will be "
  20. "replaced by the start and destination addresses.")
  21. route_lat_lon_url = fields.Char(
  22. string='Route URL that uses latitude and longitude',
  23. help="In this URL, {START_LATITUDE}, {START_LONGITUDE}, "
  24. "{DEST_LATITUDE} and {DEST_LONGITUDE} will be replaced by the "
  25. "latitude and longitude of the start and destination adresses "
  26. "(requires the module 'base_geolocalize').")