Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
calendarholidayssubscriptionSubscribefeature request
1326 Zobrazenia
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
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
How to block specific dates/times in Odoo calendar?
calendar holidays
Avatar
0
jan 21
6363
subscribtion automatic invoices
subscription Subscribe
Avatar
Avatar
1
júl 20
3415
where is calendar to manage holidays?
calendar holidays
Avatar
0
mar 15
4820
✅ eLearning subscription feature request: Gradual access to course conditioned by number of subcription renewals
subscription eLearning feature request
Avatar
0
mar 25
1611
Public Holidays Not shown in Calendar Solved
calendar holidays odoo
Avatar
Avatar
Avatar
5
feb 24
9329
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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