Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Geospatial Plot

Entity: geospatial.plot

Compute Method: _compute_plot_size

Inputs Method Outputs
reference_uom = self.env.ref("uom.uom_square_meter")
for this in self:
            if not (this.plot_size_sqm and this.plot_uom_id):
                this.plot_size = 0.0
                continue
            this.plot_size = reference_uom._compute_quantity(
                this.plot_size_sqm, this.plot_uom_id
            )

Back to entity