-
Book Overview & Buying
-
Table Of Contents
Odoo 14 Development Cookbook - Fourth Edition
By :
Odoo version 13 adds a new view called a map view. As its name suggests, it is used to show a map with a marker. They are very useful for on-site services.
In our example, we will continue using the my_project module from the previous recipe. We will create the new map view on for the customer of the task.The map view is part of the Odoo Enterprise edition, so you can't use it with the Community edition. If you are using the Enterprise edition, you need to add the web_map dependency in the manifest file of your module.
Odoo uses the API from https://www.mapbox.com/ to display maps in the view. In order to see the map in Odoo, you will need to generate the access token from the mapbox. Make sure you have generated an access token and set it in the Odoo configuration.
map view for the task model as follows:<record id="view_project_tasks_map" model="ir.ui.view"> ...