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č

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

Naroči se

Get notified when there's activity on this post

This question has been flagged
subscriptioneLearningfeature request
1601 Prikazi
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
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
✅ eLearning feature request : Revoke course access when subscription is closed or canceled
subscription upgrade request eLearning feature request
Avatar
0
mar. 25
1493
Charge for Elearning courses through a subscription method
subscription courses eLearning
Avatar
Avatar
1
jul. 25
2788
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
mar. 25
1499
How do I transfer my subscription from the old database to the new one? Solved
subscription
Avatar
Avatar
1
jun. 25
1751
✅ Subscription & Calendar feature request: Extend subscription end dates to account for holidays
calendar holidays subscription Subscribe feature request
Avatar
0
mar. 25
1321
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