Company
  • Home
  • About Us
  • UAE Explore
Google direction in odooGoogle map integration

Google Map Integration In Odoo

By Prajul

Google Map Odoo Integration

Google maps have multiple use but one of the main use is to find a route between two different locations. We have integrated the Odoo Direction API and places text search to Odoo which can be used to find routes between to locations entered in Odoo.

We have created a new widget as “Google autocomplete”. We can assign this widget to any character field in Odoo. Once this widget is assigned, when user types any data in these fields, Odoo displays some place suggestion from Google maps as shown below:

 

 

 

User can select any of the suggestions listed by the system. On selection of any suggestions a map displays with the pin on the location selected above as shown below:

We have option to select the destination also. Once selected, Odoo will display the possible routes in the map as shown below:

 

Enabling Widget for Place Auto Completed :

We have added this as a widget. You can enable this widget by passing “widget=google_autocomplete” parameter in any character field. A sample code is given below:

Enabling Map for Google Directions:

 

In  xml  file, add a div as follows:

 

Arguments are as follows:

id: id of the div defined.

  1. style: the style of the div. This determines the style in which the map that will be displayed including height, width etc.
  2. src: field name in the view from which the “Source” location in map need to be selected.
  3. dest: field name in the view from which the “Destination” location in map need to be selected.

 

Post navigation

Previous PostPrevious
Next PostNext
Related Posts

Odoo Retail ERP Case Study

Merge Shipment from Multiple Purchase Orders in Odoo

HR, Payroll and Leave Management Module in odoo

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Weighbridge Integration In Odoo
  • Odoo Retail ERP Case Study
  • Bank Reconciliation in Odoo
  • Merge Shipment from Multiple Purchase Orders in Odoo
  • HR, Payroll and Leave Management Module in odoo

Categories

  • Asset Managment
  • Finance Management
  • Human Resource
  • odoo 11
  • Odoo Inventory
  • POS
  • property management
  • UAE Explore
  • Uncategorized
  • Zesty Products

Archives

  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017

Recent Comments

  • Wainaina on Odoo Functional Documentation-DB Integration
  • Diego Gonzalez on Revenue Realisation in Odoo
  • Fazil Mahammood Abdullah on Serial Line Numbering Module In Odoo
  • Fazil Mahammood Abdullah on Stock Aging Report
  • Bakir Boubakkir Hussain on Delivery Tracking Module | Odoo

Quick Links

  • About Us
  • Contact Us
  • Sample Page

Connect with us

  • Contact us
  • Blog
  • Presentations
  • +91 9544 644 399
  • contact@alraislabs.com

ZESTY LABS - About us

Zesty Labs (part of Alrais Labs) is a multi national company, with its expertise in Odoo (formerly Open ERP) and has direct offices in Germany, India and UAE

We are leading among the odoo partners across UAE region and other GCC countries, with large odoo implementation to show case in its forte. Our goal is to deliver error free and robust ERP solution in and affordable cost .

Our products are designed for medium to large sized companies willing to optimize their performance.

To know more about our updates visit our blog,

Blog : Trends & Updates on ERP

Copyright © ZESTY LABS