Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

✅ Subscription & Calendar feature request: Extend subscription end dates to account for holidays

Naroči se

Get notified when there's activity on this post

This question has been flagged
calendarholidayssubscriptionSubscribefeature request
1354 Prikazi
Avatar
Nicolas LAURENT

I work primarly with subscription services. Currently, Odoo doesn't natively support the extension of the subscription end dates to account for holidays (public holidays or business closure).

I think a lot of users relying on subscription services would also need this feature.

I've looked up in the app store but not sure if there are apps that can do that.

Any advice on that question?

For reference, here's what Deepseek say:

________________________

To extend subscription end dates in Odoo to account for holidays (e.g., business closures), you’ll need to customize the subscription logic. Here are the best approaches:

1. Native Odoo Solution (Limited)

Odoo’s Subscription module doesn’t natively support holiday-based extensions, but you can manually adjust dates:

  1. Go to Sales > Subscriptions.
  2. Open the subscription and edit the End Date field.
  3. Add the number of holiday days to the original end date (e.g., extend by 7 days for a week-long closure).

Limitation: Manual and time-consuming for large customer bases.

2. Automated Solution (Custom Development)

Step 1: Create a Holiday Calendar

  1. Go to Settings > Technical > Calendar > Calendars and create a "Business Holidays" calendar.
  2. Add holidays as events (e.g., "Annual Closure: Dec 25–Jan 1").

Step 2: Override Subscription Renewal Logic

Use a custom Python method to skip holidays when calculating end dates:

python

Copy

from datetime import timedelta
from odoo import fields, models

class Subscription(models.Model):
    _inherit = 'sale.subscription'

    def _compute_end_date(self):
        for sub in self:
            end_date = sub.start_date + timedelta(days=sub.template_id.duration)
            # Skip holidays
            holidays = self.env['calendar.event'].search([
                ('start_date', '<=', end_date),
                ('stop_date', '>=', end_date),
                ('holiday_calendar_id', '=', sub.company_id.holiday_calendar_id.id)
            ])
            if holidays:
                end_date += timedelta(days=len(holidays))  # Extend by holiday duration
            sub.end_date = end_date

Step 3: Link Holidays to Subscriptions

  • Add a field to link subscriptions to your holiday calendar:
    python
    Copy
    holiday_calendar_id = fields.Many2one('calendar.calendar', string="Holiday Calendar")

3. Alternative: Use "Pause Subscription" Functionality

  1. Manually pause subscriptions during holidays:
    • Go to Subscriptions, select records, and click "Pause".
    • Resubscriptions will auto-extend by the paused duration.
  2. Automate pausing with a scheduled action triggered by holidays.

4. Third-Party Apps

  • Explore Odoo apps like "Subscription Extensions" or "Advanced Subscriptions" (check the Odoo App Store).
  • Look for features like:
    • "Skip holidays in billing cycles".
    • "Auto-adjust end dates".

Key Considerations

  • Prorated Billing: If extending subscriptions, decide whether to charge customers for the extra days.
  • Notifications: Send emails to inform customers of adjusted dates.
  • Testing: Dry-run with a test subscription before deploying.

Why This Works

  • Holiday Awareness: Subscriptions now account for business closures.
  • Scalability: Automated for large customer bases.

For a no-code fix, use manual date edits or pause subscriptions. For automation, custom development is required (cost: ~€200–€500 via freelancer).

0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
How to block specific dates/times in Odoo calendar?
calendar holidays
Avatar
0
jan. 21
6405
subscribtion automatic invoices
subscription Subscribe
Avatar
Avatar
1
jul. 20
3437
where is calendar to manage holidays?
calendar holidays
Avatar
0
mar. 15
4832
✅ eLearning subscription feature request: Gradual access to course conditioned by number of subcription renewals
subscription eLearning feature request
Avatar
0
mar. 25
1644
Public Holidays Not shown in Calendar Solved
calendar holidays odoo
Avatar
Avatar
Avatar
5
feb. 24
9341
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

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

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now