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

Module: Field Service Geoengine

Entity: fsm.location

Compute Method: _compute_shape

View 18.0
Inputs Method Outputs
  • partner_latitude
  • partner_longitude
- for loc in self:
-             if loc.partner_latitude or loc.partner_longitude:
-                 point = fields.GeoPoint.from_latlon(
-                     cr=loc.env.cr,
-                     latitude=loc.partner_latitude,
-                     longitude=loc.partner_longitude,
-                 )
-                 loc.shape = point
-             else:
-                 loc.shape = False
  • shape

Back to entity