The EasyPost Tracking Link Functionality enhancement improves the way tracking links are handled in Odoo when using EasyPost for shipping. It provides precise tracking per package for multi-package deliveries, ensuring a better shipping experience and clearer communication with customers.
Key Features
Support for Multiple Packages: Automatically handles multiple tracking codes from a single picking.
Environment-Specific API Keys: Dynamically selects the correct EasyPost API key (test or production) based on the environment.
Accurate Tracking Links: Fetches real-time tracking links from EasyPost for each individual package.
Smart Return Format:
- Returns a single tracking link if only one package is shipped.
- Returns a JSON list of links if multiple packages are involved.
How It Works
- When viewing a delivery with EasyPost shipping:
- The system checks if multiple tracking codes exist (delimited by +).
- For each code, it calls EasyPost’s API using the EasypostRequest class.
- It returns a list of accurate tracking links.
- Environment-aware configuration:
- Automatically detects and applies the test or live API key based on the deployment environment.
Benefits
Package-Level Tracking: Greatly improves tracking for shipments with multiple parcels.
Secure & Configurable: Selects correct API credentials for dev vs production.
Customer Transparency: Ensures customers receive the right tracking links per package.
Conclusion
The EasyPost Tracking Link Functionality provides a smart and flexible enhancement to Odoo’s delivery process by supporting real-time, package-level tracking through EasyPost. It’s especially valuable for businesses shipping multiple parcels in a single order, offering transparency, automation, and control.
EasyPost Tracking Link Functionality