Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

Show path between two Address on google map in Odoo

  • Todos los blogs
  • Tech Blog
  • Show path between two Address on google map in Odoo
  • 5 de marzo de 2021 por
    Administrator

    To show path, distance and duration between source and destination address on google map , just use this simple function in Odoo. An new window will pop up in browser, showing path between source address and destination address .

    def show_path_on_google_map(self, cr, uid, ids, context=None):

    ”’ Function to show path between Source and Destination Address on Google map ”’

    url=”http://maps.google.com/maps?saddr=”

    # Demo Addresses
    source_address = ‘ Mumbai, Maharashtra ‘

    destination_address = ‘Red Fort Delhi, India ,110006’

     

    url += source_address + ‘&daddr=’ + destination_address

    return {

    ‘type’: ‘ir.actions.act_url’,

    ‘url’:url,

    ‘nodestroy’: True,

    ‘target’: ‘new’

    }

     

     

    en Tech Blog
    DNS resolution for LXC in Ubuntu 14.04

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)