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 feature request : Revoke course access when subscription is closed or canceled

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
subscriptionupgraderequesteLearningfeature request
1496 Weergaven
Avatar
Nicolas LAURENT

I want to sell access to my online course by subscription, and I want the student to have access to the course only when their subscription is active. I want the access to be revoked if the subscription is closed or canceled.

This seems to be a pretty basic functionnality regarding an eLearning platform, but I've looked up for tutorials, and it's not a native Odoo functionnality. I've asked Deepseek how to manage that, and it seems that I need Odoo Studio to customize (details below).

How to submit this functionnality to be included in a future update?

______________________________

In Odoo, by default, when a subscription ends, the client’s access to the course linked to that subscription is not automatically revoked. Odoo does not natively handle the automatic revocation of course access based on subscription status. However, you can configure this behavior using custom development or automated actions. Here’s a detailed explanation of what happens by default and how you can manage course access when a subscription ends:

1. Default Behavior in Odoo

  • Subscription Ends: When a subscription ends, Odoo marks it as expired or canceled, but it does not automatically revoke access to the course.
  • Course Access: The client retains access to the course unless you manually revoke it or implement a custom solution.

2. Why This Happens

  • Odoo’s Subscription and eLearning modules are not tightly integrated by default.
  • There is no native functionality to automatically link subscription status to course access.

3. How to Automatically Revoke Course Access When a Subscription Ends

To automatically revoke course access when a subscription ends, you can use one of the following approaches:

a. Automated Actions

  1. Create an Automated Action:
    • Go to Settings > Technical > Automation > Automated Actions.
    • Create a new automated action triggered when a subscription is expired or canceled.
  2. Update Course Access:
    • Use the automated action to update the client’s access to the course.
    • Example: Set a custom field (e.g., has_access) to False when the subscription ends.
  3. Restrict Access:
    • Use Record Rules to restrict access to the course based on the has_access field.

b. Custom Development

  1. Create a Custom Field:
    • Add a custom field (e.g., subscription_active) to the res.partner model to track subscription status.
  2. Update Subscription Status:
    • Use a custom module or script to update the subscription_active field when a subscription ends.
  3. Restrict Course Access:
    • Override the access logic for the course to check the subscription_active field.
    • Example: If subscription_active is False, deny access to the course.

c. Odoo Studio (Custom Edition Only)

If you’re using the Custom Edition (29.9 €/month), you can use Odoo Studio to create a custom workflow that links subscription status to course access.

4. Example Workflow

Here’s an example of how you can implement this functionality:

  1. Create a Custom Field:
    • Add a custom field (e.g., subscription_active) to the res.partner model.
  2. Automate Subscription Status Updates:
    • Use an automated action to update the subscription_active field when a subscription ends.
    • Example:
      python
      Copy
      from odoo import models, fields
      
      class Subscription(models.Model):
          _inherit = 'sale.subscription'
      
          def update_subscription_status(self):
              for subscription in self:
                  partner = subscription.partner_id
                  if subscription.state in ['closed', 'canceled']:
                      partner.write({'subscription_active': False})
  3. Restrict Course Access:
    • Use a record rule to restrict access to the course based on the subscription_active field.
    • Example:
      xml
      Copy
      <record id="restrict_course_access" model="ir.rule">
          <field name="name">Restrict Course Access</field>
          <field name="model_id" ref="model_slide_channel"/>
          <field name="domain_force">[('subscription_active', '=', True)]</field>
          <field name="groups" eval="[(4, ref('base.group_user'))]"/>
      </record>
      Run HTML

5. Notify the Client

  • Use Email Templates to notify the client when their subscription ends and their course access is revoked.
  • Example: Send an email when the subscription_active field is set to False.

6. Testing

  • Test the setup by creating a subscription, linking it to a course, and verifying access is revoked when the subscription ends.

Conclusion

By default, Odoo does not automatically revoke course access when a subscription ends. However, you can implement this functionality using automated actions, custom development, or Odoo Studio (if you’re using the Custom Edition). If you need assistance, consider hiring an Odoo developer to create a custom solution tailored to your needs.

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 subscription feature request: Gradual access to course conditioned by number of subcription renewals
subscription eLearning feature request
Avatar
0
mrt. 25
1606
✅ Events feature request : "Every other" recurrence pattern
upgrade request events Feature feature request
Avatar
0
mrt. 25
1619
Charge for Elearning courses through a subscription method
subscription courses eLearning
Avatar
Avatar
1
jul. 25
2790
Keep old Subscription functionality when upgrading to new version Opgelost
subscription upgrade functionality
Avatar
Avatar
2
okt. 24
1507
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
1502
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