Geospatial mailing list archives

geospatial@odoo-community.org

Avatar

Re: domain

by
Camptocamp SA, Yannick Vaucher
- 04/02/2020 16:35:52
Hello,

IIRC geo_domain can only be used in the geo_search method. It's not integrated in the standard search method.
But I like the idea.

You might want to create a computed field that use geo_search and then apply a standard domain on your field using that computed field.

Regards,
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 Thu, 30 Jan 2020 at 18:32, amatdarso giano <msc_amatdarso@hotmail.com> wrote:
Hello

I am trying to put a geo_domain on my many2one field in xml.
how can I achieve this?

<field name="zone_id" geo_domain="[('geo_polygon','geo_contains','POINT(lat long)')"/>  
not working

_______________________________________________
Mailing-List: https://odoo-community.org/groups/geospatial-48
Post to: mailto:geospatial@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference