Repository
OCA/geospatial · module folder · Try on Runboat
Module version
1.0.1
Category
Geospatial
Folder size
0.11 MB
License
AGPL-3
Application
Yes
Auto-installable
No
Website
https://github.com/OCA/geospatial
Last tracking update
2026-09-10 11:16:30
Authors
Odoo Community Association (OCA), Advance Insight
Maintainers
Odoo Community Association (OCA), Advance Insight
Committers
Ronald Portier, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows to draw plots on a map. It can can be used to define
plots of agricultural land, plots for planning urban development, for
managing natural reserves, etc.

Plots are linked to partners that use the plot. The default address of
a plot will be the address of the using partner, but a separate address
can be set.

Plots can have an owning partner, if different from the actual using partner.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
geospatial_plot_form geospatial.plot.form geospatial.plot form New
geospatial_plot_search geospatial.plot.search geospatial.plot search New
geospatial_plot_tree geospatial.plot.tree geospatial.plot list New
res_config_settings_view_form view.res.config.settings.form - geospatial_plot res.config.settings form Inherits base.res_config_settings_view_form
view_partner_form res.partner.form - geospatial_plot res.partner form Inherits base.view_partner_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (13)
  • active Boolean
    default=True tracking=True
  • country_code Char
    related='country_id.code'
  • country_id Many2one → res.country
    comodel_name='res.country' compute='_compute_res_country' help='Used to set map to draw plot on' store=True
  • name Char
    required=True tracking=True
  • owner_id Many2one → res.partner
    comodel_name='res.partner' domain="[('type', '=', 'contact')]" help='The partner owning the plot' index=True ondelete='set null' tracking=True
  • partner_address_id Many2one → res.partner
    comodel_name='res.partner' domain="[('type', '=', 'other')]" help='If the plot has its own address, separate from the using partner' index=True ondelete='set null' string='Plot address' tracking=True
  • partner_id Many2one → res.partner
    comodel_name='res.partner' domain="[('type', '=', 'contact')]" help='The partner using the plot' index=True ondelete='cascade' required=True tracking=True
  • plot_description Text
    args: 'Description'
  • plot_polygon Json
    help='This field contains the actual plot coordinates'
  • plot_shape_type Selection
    selection=[('circle', 'Circle'), ('polygon', 'Polygon'), ('rectangle', 'Rectangle')]
  • plot_size Float
    compute='_compute_plot_size' help='Plot size in selected unit of measurement'
  • plot_size_sqm Float
    help='This field will be set by drawing the plot' required=True string='Plot size in square meter' tracking=True
  • plot_uom_id Many2one → uom.uom
    comodel_name='uom.uom' domain=<expr> readonly=True tracking=True
Public methods (1)
  • default_get(self, fields_list)

New fields (1)
  • plot_uom_id Many2one → uom.uom
    config_parameter='geospatial_plot.plot_uom_id' default=<expr> domain=<expr> string='Default Plot Unit of Measure' args: 'uom.uom'
Public methods (0)

No public methods.

New fields (5)
  • leased_acreage Float
    compute='_compute_land_acreage' store=True tracking=True args: 'Leased Plot Acreage'
  • own_acreage Float
    compute='_compute_land_acreage' store=True tracking=True args: 'Own Plot Acreage'
  • plot_ids One2many → geospatial.plot
    copy=False args: 'geospatial.plot', 'partner_id', 'Area in use'
  • plot_uom_id Many2one → uom.uom
    domain=<expr> tracking=True args: 'uom.uom', 'Land Area Unit of Measure'
  • total_acreage Float
    compute='_compute_acreage' store=True args: 'Total Plot Acreage'
Public methods (2)
  • action_create_plot(self)
  • default_get(self, fields_list)