Geospatial mailing list archives


Re: GeoEngine Questions

Camptocamp SA, Yannick Vaucher
- 01/04/2020 14:12:17
Hello Kevin,

> My first issue is I cannot see how to display the name field

To show a field in the info box you need to list that field in the geoengine view:

> My second issue is how to display an overlay ...

If I get it right for your overlay, it will assign a color per id of the field project. And it will color it with a different color for False or 0.
The attribute was designed to have an integer value. I don't think it was considered to have an empty value.
In Odoo null and 0 are the same thing, thus it's like a set value to 0.

You might want to use the search function if you don't want to hide locations without project and create a filter on that.
If you still want to see the location but without color some changes need to be made in the javascript code of base_geoengine module.

You could override this function to define what is uncolored for you:

Yannick Vaucher
Business Solutions Architect

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10

On Tue, 31 Mar 2020 at 20:11, Kevin McMenamin <> wrote:


I downloaded GeoEngine and the demo module for Odoo13. Got installed and is all working and looks excellent.


My use case is as follows:

The customer is a scientific nursery that groups seedlings for clients. They are looking for a solution that will enable them to view their growing areas and understand utilisation at any time.

I decided to use stock.location as the model and have set up some sample data as below.


My first issue is I cannot see how to display the name field either within the shape or by clicking on (as the demo does). I have created a separate tree view but have only extended the base stock.location form view. Have added the various map views but not sure what I am missing.


My second issue is how to display an overlay. In project.project I have added a o2m for a new model project.location  with location,start date and end date. So the project manager can define what locations this project will consume for what period. I have added an overlay with attribute_id = field_project_location__project – when I select this overlay all the mapped locations are coloured not just the one that has a linked project.


Any help you could give would be greatly appreciated.







Kevin McMenamin

ERP Capability Manager, Solnet

 +64 22 651 3753 | +64 9 977 5805 | Visit our blog | Connect on LinkedIn



Attention: This email may contain information intended for the sole use of the original recipient. Please respect this when sharing or disclosing this email's contents with any third party. If you believe you have received this email in error, please delete it and notify the sender or as soon as possible. The content of this email does not necessarily reflect the views of Solnet Solutions Ltd.

Post to: