Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
fix issue on template
Browse files Browse the repository at this point in the history
  • Loading branch information
reichie020212 committed Feb 2, 2024
1 parent 3c3fae0 commit 370cb3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion spp_farmer_registry_base/models/partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ class ResPartner(models.Model):

_inherit = "res.partner"

geo_point = fields.GeoPoint("Address coordinates")
geo_point = fields.GeoPoint()
geo_multi_polygon = fields.GeoMultiPolygon()
16 changes: 14 additions & 2 deletions spp_farmer_registry_base/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<field name="city" />
<field name="country_id" />
<field name="geo_point" />
<field name="geo_multi_polygon" />
<templates>
<t t-name="info_box">
<b>
Expand All @@ -34,9 +35,9 @@
</field>
</record>

<record id="geoengine_vector_layer_res_partner" model="geoengine.vector.layer">
<record id="geoengine_vector_layer_geo_point_res_partner" model="geoengine.vector.layer">
<field name="geo_field_id" ref="spp_farmer_registry_base.field_res_partner__geo_point" />
<field name="name">Partner location</field>
<field name="name">Partner location geo point</field>
<field eval="1" name="sequence" />
<field name="view_id" ref="ir_ui_view_geo_partner" />
<field name="geo_repr">basic</field>
Expand All @@ -45,6 +46,17 @@
<field eval="1" name="nb_class" />
<field name="begin_color">#FF680A</field>
</record>
<record id="geoengine_vector_layer_geo_multi_poly_res_partner" model="geoengine.vector.layer">
<field name="geo_field_id" ref="spp_farmer_registry_base.field_res_partner__geo_multi_polygon" />
<field name="name">Partner location geo multi polygon</field>
<field eval="1" name="sequence" />
<field name="view_id" ref="ir_ui_view_geo_partner" />
<field name="geo_repr">basic</field>
<field name="active_on_startup" eval="True" />
<field name="layer_opacity">0.8</field>
<field eval="1" name="nb_class" />
<field name="begin_color">#FF680A</field>
</record>
<record id="geoengine_raster_layer_res_partner_osm" model="geoengine.raster.layer">
<field name="raster_type">osm</field>
<field name="name">Partner background</field>
Expand Down

0 comments on commit 370cb3b

Please sign in to comment.