| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Attendances (hr_attendance)
• Contacts (contacts) • Employees (hr) • Field Service (industry_fsm) • Inventory (stock) • Invoicing (account) • Repairs (repair) • Timesheets (timesheet_grid) • Discuss (mail) • Project (project) • Sales (sale_management) • Studio (web_studio) |
| Lines of code | 5312 |
| Technical Name |
bista_mobile_fsm_api |
| License | LGPL-3 |
| Website | https://www.bistasolutions.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Attendances (hr_attendance)
• Contacts (contacts) • Employees (hr) • Field Service (industry_fsm) • Inventory (stock) • Invoicing (account) • Repairs (repair) • Timesheets (timesheet_grid) • Discuss (mail) • Project (project) • Sales (sale_management) • Studio (web_studio) |
| Lines of code | 5312 |
| Technical Name |
bista_mobile_fsm_api |
| License | LGPL-3 |
| Website | https://www.bistasolutions.com |
Bista Field Service APIs Odoo v18 Module
Odoo FSM Mobile Integration
This module enhances the Odoo Field Service Management (FSM) system with mobile app capabilities, including push notifications and technician travel distance calculation.
To get started with this module, follow these steps:
Configure Firebase
Navigate to the Push Notification section in your Odoo Settings. Add your Firebase project details and authentication key.
Set the Server Environment
Update the System Parameter bista_mobile_fsm_api.server_env from dev to staging or production. This ensures unique topic subscriptions for push notifications across different server instances.
Calculate Partner Coordinates
Run the scheduled action "Calc Partner Latitude and Longitude". This geocodes partner addresses into latitude and longitude, which is essential for displaying correct customer locations in the mobile app.
Dependencies
This module requires the following Python packages:
google-auth
For authenticating and sending push notifications via Firebase Cloud Messaging (FCM).
PyJWT
For generating access tokens required by the mobile API.
googlemaps
For calculating the total travel distance for technicians using the Google Maps API.
Google Maps API Setup (for Travel Distance)
To enable the calculation of total miles traveled by a technician, you must obtain and configure a Google Maps API key in the Geolocation section of Odoo General Settings. For detailed setup instructions, please refer to the following documentation: Google Maps API Configuration Guide:
Google Maps Directions API
The Google Maps Directions API enables developers to programmatically retrieve route information between locations. How this works: https://developers.google.com/maps/documentation/routes/overview/
Key Features for our use case Waypoints Support [Directions API]: Include intermediate stops (waypoints) in your route to plan multi-leg journeys. We will use tracking history record's latitude & longitude as waypoints.
Getting Started Enable the API: Activate the Directions API in your Google Cloud project https://developers.google.com/maps/documentation/directions/start/
Obtain an API Key: Generate an API key through the Google Cloud Console and secure it appropriately.
Screenshots
Please log in to comment on this module