Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Warehouse
  3. EasyPost Refund on Cancel & Manual v 19.0
  4. Sales Conditions FAQ

EasyPost Refund on Cancel & Manual

by Shadail Technology https://shadailtech.com
Odoo
v 19.0 Third Party 1
Download for v 19.0 Deploy on Odoo.sh
This module requires Odoo Enterprise Edition.
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Easypost Shipping (delivery_easypost)
• Inventory (stock)
• Discuss (mail)
• Invoicing (account)
Lines of code 662
Technical Name shd_easypost_refund_on_cancel
LicenseOPL-1
Websitehttps://shadailtech.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Easypost Shipping (delivery_easypost)
• Inventory (stock)
• Discuss (mail)
• Invoicing (account)
Lines of code 662
Technical Name shd_easypost_refund_on_cancel
LicenseOPL-1
Websitehttps://shadailtech.com
  • Description
  • Documentation
  • License
EasyPost Refund on Cancel & Manual
Shadail Technology
Odoo Solutions & Digital Transformation
Compatible with
Community
Enterprise
Contact Us
Odoo 19 • Warehouse / Delivery • OPL-1

EasyPost Refund on Cancel & Manual

Automate EasyPost shipment refunds on delivery cancellation, manage manual requests, enforce carrier eligibility rules, retry failed refunds, and maintain a full audit trail — all from within Odoo.

📦 Version 19.0.1.0.0 🏢 Shadail Technology 💻 Odoo 19 🚚 EasyPost 🔒 OPL-1 License ✅ Community & Enterprise
📋
Key Features
Everything you need to manage EasyPost shipment refunds without leaving Odoo — automated, configurable, and fully auditable.

The EasyPost Refund on Cancel & Manual module provides a complete refund management solution for EasyPost shipments. It automatically initiates refunds when delivery orders are cancelled, supports manual refund requests through a confirmation wizard, applies carrier-specific eligibility rules, retries failed refunds via a scheduled job, and logs every API interaction for full traceability.

🔄

Auto Refund on Cancel

Automatically submits an EasyPost refund request whenever a validated delivery order is cancelled — zero manual steps required.

🧾

Manual Refund Wizard

The Request EasyPost Refund button on the delivery form opens a confirmation dialog for on-demand refund requests at any time.

✅

Carrier Eligibility Checks

Per-carrier validation: USPS time window (default 30 days), UPS and FedEx toggles — each independently configurable from settings.

🔁

Automatic Retry Cron

A scheduled action retries pending or failed refunds up to a configurable maximum number of attempts at a configurable interval.

🏷️

Return Label Creation

Creates a return EasyPost shipment, selects the lowest available rate, downloads the PDF label, and attaches it to the picking automatically.

📋

Full Audit Logging

Every refund attempt — success or failure — is recorded in a dedicated log with the raw EasyPost API response and timestamps.

💬

Chatter Notifications

Posts refund status updates directly to the delivery order chatter so the whole team stays informed in real time without leaving the record.

⚙️

Centralised Settings

All behaviour controlled from Inventory → Configuration → Settings. No code changes or developer access needed.

⚙️
Configuration Settings

Easypost Refund Configuration Settings screen
Easypost Return and Refund Configuration setting screen.

Go to Sales → Configuration → Settings → Inventory → EasyPost Refund Configuration to manage all options.
SettingDefaultDescription
Auto Refund on CancelEnabledTriggers a refund automatically when a delivery order is cancelled.
Enable Chatter NotificationsEnabledPosts refund status messages to the picking chatter on every attempt.
Maximum Refund Attempts3Number of times the system retries a failed refund before marking it as permanently failed.
Retry Interval (minutes)15Minimum time between automatic retry attempts by the scheduled cron.
Enable USPS RefundsEnabledAllow refunds for USPS shipments via EasyPost.
USPS Refund Window (days)30Maximum number of days after the shipment date to request a USPS refund.
Enable UPS RefundsEnabledAllow refunds for UPS shipments via EasyPost.
Enable FedEx RefundsEnabledAllow refunds for FedEx shipments via EasyPost.
Create Return Label After RefundEnabledAuto-create and attach a return label PDF to the picking when a refund succeeds.
💡
Tip: Start with all toggles enabled and the default retry settings. Tighten carrier-specific rules only after observing refund success rates in production.

Refund Eligibility Flow

Refund requested (auto on cancel OR manual button) | +-- Is easypost_shipment_id set and starts with "shp_"? --> NO --> Skipped (no label) | YES +-- Is carrier USPS? | +-- Enable USPS Refunds = True? --> NO --> Blocked | +-- Within USPS Refund Window? --> NO --> Blocked | YES +-- Is carrier UPS? --> Enable UPS Refunds = True? --> NO --> Blocked +-- Is carrier FedEx? --> Enable FedEx Refunds = True? --> NO --> Blocked | +-- EasyPost Refund API called | +-- Success --> status = refunded, return label created (if enabled) | +-- Failure --> attempt count++, retry later (up to max attempts)
🔧
Setup & Usage

Carrier Setup

Easypost Configuration Settings screen
Easypost Configuration setting screen.

  1. Open the EasyPost carrier

    Go to Inventory → Configuration → Delivery Methods and open your EasyPost carrier record.

  2. Set API keys

    Enter your Test API Key and/or Production API Key. Enable Production Environment for live shipments.

Refund Settings

Easypost Refund Configuration Settings screen
Easypost Return and Refund Configuration setting screen.

  1. Open Inventory Settings

    Go to Sales → Configuration → Settings → Inventory → EasyPost Refund Configuration.

  2. Configure your rules

    Toggle auto-refund, set maximum attempts, retry interval, and carrier-specific rules (USPS window, UPS, FedEx).

  3. Save

    Click Save to persist your configuration.

Using Auto Refund on Cancel

  1. Open a delivery order

    Go to Inventory → Operations → Transfers and open a validated outgoing delivery that has an EasyPost label.

  2. Cancel the picking

    Click Cancel. If the picking has a valid EasyPost Shipment ID (starting with shp_), the refund is submitted automatically.

  3. Check the result

    Open the EasyPost Details tab to see the refund status. The chatter shows a notification if enabled in settings.

Manual Refund Request

Easypost Refund functionality screen
Easypost Return and Refund functionality screen.

  1. Open a shipped delivery

    Navigate to the outgoing delivery order that has an EasyPost label assigned (shipment ID starting with shp_).

  2. Click Request EasyPost Refund

    Use the Request EasyPost Refund button in the header toolbar and confirm the dialog that appears.

  3. Monitor status

    The EasyPost Details tab updates with the refund status, attempt count, and any messages returned by the API.

Enable the Retry Cron

  1. Find the scheduled action

    Go to Settings → Technical → Scheduled Actions and find Retry EasyPost Refunds.

  2. Enable and configure

    Toggle it active and set your preferred interval (default: every 15 minutes). The cron retries all pending pickings up to the configured maximum attempts.

View Refund Logs

  1. Navigate to logs

    Go to Inventory → Reporting → EasyPost → Refund Logs.

  2. Review entries

    Each row shows the delivery, EasyPost shipment ID, refund status, message, and full API response for audit and dispute purposes.

📚
Technical Reference
Module dependencies, data models, and important technical notes.

Module Dependencies

ModulePurpose
stockOdoo Inventory & Stock operations — base for stock picking model
stock_deliveryDelivery carrier integration — carrier field on pickings
delivery_easypostEasyPost API keys, shipment creation, and easypost_shipment_id field
⚠️
Required field: The EasyPost Shipment ID field (easypost_shipment_id) on the delivery order must be populated and start with shp_ for the refund flow to trigger. This is set automatically by the delivery_easypost module when a shipment label is purchased.

Key Models & Fields

ModelField / ExtensionPurpose
stock.pickingeasypost_refund_statusCurrent refund state: pending / submitted / refunded / failed
stock.pickingeasypost_refund_attemptsNumber of refund attempts made so far
stock.pickingeasypost_refund_messageLast message or error returned by the EasyPost API
easypost.refund.logFull modelAudit log: delivery, shipment ID, status, API response, timestamp
easypost.refund.wizardTransient modelConfirmation dialog for manual refund requests
res.config.settingsExtendedAll EasyPost refund configuration toggles and values

Scheduled Action

⏰
Retry EasyPost Refunds — finds all pickings with refund status pending or failed where attempt count < max attempts, and re-submits the refund request to EasyPost. Default interval: 15 minutes.

Module Info

PropertyValue
Technical Nameshd_easypost_refund_on_cancel
Version19.0.1.0.0
CategoryWarehouse
LicenseOPL-1
AuthorShadail Technology
Websitehttps://shadailtech.com
Odoo Version19
EditionCommunity & Enterprise

Need Help with Your EasyPost Refund Setup?

Our Odoo logistics and delivery integration team at Shadail Technology is ready to assist with configuration, carrier setup, and customisation.

Contact Us
Shadail Technology

Odoo Solutions & Digital Transformation

Get in Touch

💬 Contact Us ✉️ info@shadailtech.com 📞 +91 79773 52693

Address

Office no. 602, Raj Oaks, MTNL Rd,
Gokul Village, Mira Road East,
Mira Bhayandar, MH 401107

© 2026 Shadail Technology  •  OPL-1  •  Odoo 19 Community & Enterprise

www.shadailtech.com

EasyPost Refund on Cancel & Manual

EasyPost Refund on Cancel

Table of Contents

  • Overview
  • Key Features
  • Dependencies
  • Installation
  • Configuration
  • Usage
    • Automatic Refund on Cancel
    • Manual Refund Request
    • Checking Refund Status
    • Creating a Return Label
    • Scheduled Cron Job
  • Technical Notes
  • Support

Overview

The EasyPost Refund on Cancel & Manual module automates EasyPost shipment refunds in Odoo 19. When a delivery order is cancelled, the module automatically requests a refund from EasyPost for the associated label. Manual refund requests are also supported directly from the delivery order view. The module includes retry logic, eligibility checks, refund status logging, and return label creation capabilities.

Key Features

  • Auto-Refund on Cancel — Automatically requests an EasyPost label refund when a delivery order is cancelled
  • Manual Refund Request — Trigger a refund manually from the delivery order with a single click
  • Eligibility Checks — Validates refund eligibility before submitting (shipment age, carrier rules)
  • Retry Logic — Automatically retries failed refund requests via a scheduled cron job
  • Refund Log — Full log of all refund attempts, statuses, and EasyPost responses
  • Return Label Creation — Create return labels for inbound shipments directly from the delivery order
  • Config Settings — Configure retry intervals and auto-refund behaviour from system settings

Dependencies

  • stock
  • stock_delivery
  • delivery_easypost

Installation

  1. Ensure Odoo's delivery_easypost module is installed and your EasyPost API key is configured.
  2. In the Odoo Apps menu, search for EasyPost Refund on Cancel and click Install.

Configuration

  1. Go to Inventory → Configuration → Settings.
  2. Find the EasyPost Refund section.
  3. Configure:
    • Auto-Refund on Cancel — Enable/disable automatic refund requests when deliveries are cancelled
    • Retry Interval — Number of hours between retry attempts for failed refunds
    • Max Retries — Maximum number of retry attempts before marking a refund as permanently failed

Usage

Automatic Refund on Cancel

With Auto-Refund on Cancel enabled in settings:

  1. Open a confirmed delivery order with an EasyPost label.
  2. Click Cancel on the delivery order.
  3. The module automatically submits a refund request to EasyPost.
  4. The refund status is updated on the delivery order and logged in the refund log.

Manual Refund Request

  1. Open a delivery order with a shipped EasyPost label.
  2. Click Request Refund (button added by this module).
  3. The wizard opens — confirm the refund request.
  4. EasyPost processes the refund (typically within 5–7 business days depending on carrier).

Checking Refund Status

  1. Open the delivery order.
  2. The Refund Status field shows the current status (Pending, Submitted, Refunded, Failed).
  3. Go to Inventory → Reporting → EasyPost Refund Log for a full list of all refund attempts.

Creating a Return Label

  1. On any delivered shipment's picking record, click Create Return Label.
  2. The module creates a reverse shipment via the EasyPost API and attaches the return label PDF.

Scheduled Cron Job

The module includes a scheduled action that:

  1. Finds all pending/failed refund requests that are eligible for retry.
  2. Re-submits refund requests to EasyPost.
  3. Updates refund statuses based on EasyPost responses.

The cron interval is configurable in Inventory → Configuration → Settings.

Technical Notes

  • Module: shd_easypost_refund_on_cancel
  • Version: 19.0.1.0.0
  • Category: Warehouse
  • Author: Shadail Technology
  • Website: https://shadailtech.com
  • License: OPL-1

Support

For support and customisation requests, contact us at:

  • Email: info@shadailtech.com
  • Phone: +91 79773 52693
  • Website: https://www.shadailtech.com/contactus
  • Address: Office no. 602, Raj Oaks, MTNL Rd, Gokul Village, Mira Road East, Mira Bhayandar, MH 401107
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with