Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

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

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
calendarholidayssubscriptionSubscribefeature request
1318 Weergaven
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
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
How to block specific dates/times in Odoo calendar?
calendar holidays
Avatar
0
jan. 21
6351
subscribtion automatic invoices
subscription Subscribe
Avatar
Avatar
1
jul. 20
3412
where is calendar to manage holidays?
calendar holidays
Avatar
0
mrt. 15
4814
✅ eLearning subscription feature request: Gradual access to course conditioned by number of subcription renewals
subscription eLearning feature request
Avatar
0
mrt. 25
1599
Public Holidays Not shown in Calendar Opgelost
calendar holidays odoo
Avatar
Avatar
Avatar
5
feb. 24
9321
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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