Map view

< / / / / / >
Beginner
Views
V13.0
V 13.0
+/- 2 minutes
Written by Yenthe Van Ginneken
(0)

Quick scroll

1. Introduction

1.1 Minimal code example

The basic - and minimal - structure of a Map view looks like this:

                        
                            
                        
                    

You can add as many fields as you want inside the marker-popup, every field will be shown on a new line in the popup. The res_partner="id" refers to the field that holds the ID of the model "res.partner". If you have a custom model you'll need to have a link to the "res.partner" model, which is added in this definition.

2. Configuration options

2.1 routing

If your Map view has at least two records this option will show all pointers on the map as routes with a counter inside of the pointer.

                        
                            
                        
                    

2.2 default_order

Defines in which order the Map view should show and sort the pointers. This will show all records as pointers on the Map view with a counter starting at 1. The "default_order" option takes an Odoo field on which the records will be ordered.

                        
                            
                        
                    
This tutorial is exclusive for members
Become a member too and read all tutorials, unlimited.

Already a member? login here.