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. Subscriptions & Recurring
  3. Subscription Dunning & Fa v 18.0
  4. Sales Conditions FAQ

Subscription Dunning & Fa

by Baris Genc https://gencbaris.com/odoo_plugins/
Odoo

$ 129.00

v 18.0 Third Party
Live Preview
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 • Discuss (mail)
• Invoicing (account)
Lines of code 830
Technical Name gb_subscription_dunning_failed_payment_re
LicenseOPL-1
Websitehttps://gencbaris.com/odoo_plugins/
Versions 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Invoicing (account)
Lines of code 830
Technical Name gb_subscription_dunning_failed_payment_re
LicenseOPL-1
Websitehttps://gencbaris.com/odoo_plugins/
Versions 18.0 19.0
  • Description
  • License
Compatible with Odoo 18.0 · 19.0
LGPL-3 license · 35+ languages · Community & Enterprise
Subscription Dunning & Fa for Odoo — preview banner

Subscription Dunning & Fa

Smart retry, card-expiry nudges and involuntary-churn recovery for failed renewals (BYOK PSP)

Failed card renewals are silent revenue leaks: a declined charge quietly cancels a subscription and the customer churns without ever meaning to. Chasing those failures by hand is slow and most teams simply lose the revenue. This module adds a full dunning engine on top of Odoo invoicing for SaaS and subscription businesses, with configurable retry back-off, soft/hard decline routing, card-expiry nudges and escalating recovery campaigns that suspend or cancel only when every attempt is exhausted. A cron drives it hands-free, and it runs on your own payment-provider keys (BYOK) so no card data is ever stored or proxied in Odoo.

Key Features

Configurable retry plans with back-off

gb.dunning.plan sets max_attempts, grace_days and ordered gb.dunning.plan.step rows with per-step delay_hours. get_delay_for_attempt returns the wait before each retry, falling back to an exponential 6h/24h/72h/168h schedule when no explicit steps are defined.

Soft vs hard decline routing

classify_reason matches the PSP reason code against the plan's soft_decline_reasons (insufficient funds, issuer unavailable) and hard_decline_reasons (lost/stolen card, do-not-honor). Soft declines are rescheduled while a hard decline aborts retries immediately, so effort goes where it can succeed.

Card-expiry nudges

gb.dunning.campaign stores card_last4, card_exp_month and card_exp_year. _is_card_expiring compares against the plan's expiry_nudge_days, and _send_expiry_nudge emails the customer before the token expires, setting card_expiry_warned so the reminder is sent once.

Per-invoice recovery campaigns

Each failed account.move out_invoice drives a campaign through draft, active, recovered, suspended and cancelled states on mail.thread. run_retry charges, logs the outcome and either marks recovered or schedules the next_attempt_date until max_attempts or the grace_deadline is reached.

Configurable exhaustion action

When all retries fail, _finalise_exhausted applies the plan's final_action: suspend the campaign (when auto_suspend is on), cancel it, or schedule a mail todo activity for manual review. Recovery never silently drops a customer without the action you chose.

Full attempt log and KPIs

Every cycle writes a gb.dunning.attempt with attempt_number, success/failed state, reason_code and charged amount; _compute_reason_class tags each as success/soft/hard. Campaigns roll up attempt_count, failed_count and recovered_amount so you can measure revenue saved.

Hands-free cron processing

cron_process_due_campaigns runs run_retry on every active campaign whose next_attempt_date is due, keeping the batch alive past individual errors. cron_expiry_nudges sweeps active campaigns for soon-to-expire cards, so the whole recovery flow runs unattended.

BYOK PSP, no card data stored

The _simulate_charge hook is overridden to call the customer's own PSP (Stripe, Adyen, Braintree, GoCardless) using the stored psp_token_ref; no PAN is ever held in Odoo, only last-4 and expiry for display. An account.move action_open_dunning button and start_dunning_for_overdue helper launch campaigns from invoices.

Use Cases

✓A SaaS finance team recovers failed monthly renewals automatically with a 4-step back-off plan instead of manual chasing.
✓A subscription business nudges customers whose cards expire next month so the renewal does not fail in the first place.
✓An accounts-receivable clerk launches a dunning campaign straight from an overdue invoice with one button.
✓A revenue operations lead reviews recovered_amount across campaigns to quantify revenue saved from involuntary churn.
✓A billing admin routes hard declines (lost/stolen card) straight to customer outreach rather than wasting retry attempts.
✓A controller sets the final action to manual review so a person checks high-value accounts before any suspension.

Screenshots

Subscription Dunning & Fa — Retry Attempts in Odoo

Retry Attempts

Subscription Dunning & Fa — Dunning Campaigns in Odoo

Dunning Campaigns

Subscription Dunning & Fa — Dunning Plans in Odoo

Dunning Plans

Subscription Dunning & Fa — Run Dunning Retries in Odoo

Run Dunning Retries

Why Choose This Module

Failed card renewals are silent revenue leaks. This module adds a full dunning engine on top of Odoo invoicing and subscriptions: smart retry schedules, card-expiry reminders before the next charge, and escalating recovery campaigns that suspend or cancel only when every attempt is exhausted. It runs on your own payment-provider keys (BYOK) — we never store or proxy card data.

Specifications

  • Compatible: Odoo 18.0 / 19.0
  • License: LGPL-3
  • Languages: 35+
  • Author: Baris Genc
  • Dependencies: account, mail
  • Support: odoo@gencbaris.com
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 or have a question related to your purchase, please use the support page.
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