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

✅ eLearning subscription feature request: Gradual access to course conditioned by number of subcription renewals

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
subscriptioneLearningfeature request
1595 Weergaven
Avatar
Nicolas LAURENT

I have a serie of online courses that I want to sell by subcription, but I don't want them to be avaible immediatly, I want to unlock only one course access by month of subscription. Any idea on how to do it?

Here's Deepseek idea.

________________

Here’s how to implement gradual course access in Odoo 18, where subscribers unlock one new course per month of active subscription:

Method 1: Using Prerequisites + Subscription Duration Tracking

Step 1: Create Custom Fields

  1. Add a custom field to track subscription duration:
    • Field Name: subscription_months_paid (in res.partner or sale.subscription model).
    • Purpose: Counts how many months the client has paid.

Step 2: Automate Monthly Updates

  • Use a scheduled action to increment subscription_months_paid monthly for active subscriptions:
    python
    Copy
    # Scheduled Action Code Example
    for subscription in env['sale.subscription'].search([('state', '=', 'active')]):
        subscription.partner_id.subscription_months_paid += 1

Step 3: Set Course Prerequisites

  1. Course 1: No prerequisites (accessible immediately).
  2. Course 2: Add prerequisite:
    • Custom field subscription_months_paid >= 1.
  3. Course 3: Add prerequisite:
    • Custom field subscription_months_paid >= 2.

Step 4: Restrict Access

  • Use record rules to enforce access:
    xml
    Copy
    <record id="course_2_access_rule" model="ir.rule">
        <field name="domain_force">
            [('partner_id.subscription_months_paid', '>=', 1)]
        </field>
    </record>
    Run HTML

Method 2: Time-Based Unlocking (No Coding)

Step 1: Leverage Course Publication Dates

  1. Course 1: Publish immediately.
  2. Course 2: Set publication date to 30 days after subscription start.
    • Use a computed field or manual date entry.
  3. Course 3: Set publication date to 60 days after start.

Step 2: Automate with Expiration Dates

  • Use automated actions to publish courses based on subscription start date:
    python
    Copy
    # Example: Publish Course 2 after 30 days
    if (date.today() - subscription.start_date).days >= 30:
        course_2.is_published = True

Method 3: Membership Tiers (Alternative)

  1. Create 3 membership levels (e.g., Bronze/Silver/Gold).
  2. Assign courses to each tier:
    • Bronze (Month 1): Course 1.
    • Silver (Month 2): Course 1 + 2.
    • Gold (Month 3+): All courses.
  3. Use automated actions to upgrade memberships monthly.

Key Tools Needed

  • Odoo Studio (Custom Edition): To add custom fields/rules without coding.
  • Automated Actions: For time-based unlocks (base_automation module).
  • Developer Help: For complex logic (e.g., prorated access).

Testing & Validation

  1. Test Subscription Flow:
    • Simulate a subscription and verify courses unlock monthly.
  2. Monitor Access:
    • Check subscription_months_paid updates correctly.

Why This Works

  • Scalable: Add more courses by extending the month counter.
  • Flexible: Combine with payment failures (e.g., revoke access if unpaid).
  • Low-Code: Uses native Odoo features where possible.

For a no-code solution, Method 2 (Publication Dates) is simplest. For precision, Method 1 (Custom Fields) is ideal.

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
✅ eLearning feature request : Revoke course access when subscription is closed or canceled
subscription upgrade request eLearning feature request
Avatar
0
mrt. 25
1486
Charge for Elearning courses through a subscription method
subscription courses eLearning
Avatar
Avatar
1
jul. 25
2786
Event Coupon Subscription feature request: How to set up a subscription product to issue a fixed number of time-limited coupons that expire with the subscription and cannot be rolled over?
subscription events coupons feature request
Avatar
Avatar
1
mrt. 25
1498
How do I transfer my subscription from the old database to the new one? Opgelost
subscription
Avatar
Avatar
1
jun. 25
1748
✅ Subscription & Calendar feature request: Extend subscription end dates to account for holidays
calendar holidays subscription Subscribe feature request
Avatar
0
mrt. 25
1318
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