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 - Current Location
Entity: fsm.order
Compute Method: _compute_show_geolocate_button
| Inputs | Method | Outputs |
|---|---|---|
|
- config_restrict = ( - self.env["ir.config_parameter"] - .sudo() - .get_param("fieldservice.restrict_current_location_in_templates", False) - ) - for record in self: - if not config_restrict: - record.show_geolocate_button = True - elif not record.template_id: - record.show_geolocate_button = False - else: - record.show_geolocate_button = record.template_id.use_current_location |
|
