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.3 KiB

9 years ago
  1. # -*- coding: utf-8 -*-
  2. # © 2015 Alexis de Lattre <alexis.delattre@akretion.com>
  3. # © 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. from openerp 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').")