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
| Inputs | Method | Outputs |
|---|---|---|
|
- 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 |
|
