diff options
Diffstat (limited to 'base_geoengine/geo_view/geo_vector_symbol.py')
| -rw-r--r-- | base_geoengine/geo_view/geo_vector_symbol.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/base_geoengine/geo_view/geo_vector_symbol.py b/base_geoengine/geo_view/geo_vector_symbol.py new file mode 100644 index 0000000..2cba932 --- /dev/null +++ b/base_geoengine/geo_view/geo_vector_symbol.py @@ -0,0 +1,19 @@ +# Copyright 2016 Yannick Vaucher (Camptocamp SA) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import fields, models + + +class GeoVectorSymbol(models.Model): + _name = "geoengine.vector.symbol" + _description = "Vector Layer Symbol" + + vector_layer_id = fields.Many2one("geoengine.vector.layer") + fieldname = fields.Char( + "Category field", + help="Name of the char field or selection field used for comparison", + ) + value = fields.Char(help="All object equal to this value will use this symbol") + img = fields.Char( + help="URL of the image to use. You can put an image in your module " + "in static folder e.g. 'base_geoengine/static/img/map-marker.png'" + ) |
