Bỏ qua để đến Nội dung
Odoo Menu
  • Đăng nhập
  • Dùng thử miễn phí
  • Ứng dụng
    Tài chính
    • Kế toán
    • Hóa đơn
    • Chi phí
    • Bảng tính (BI)
    • Tài liệu
    • Ký tên
    Bán hàng
    • CRM
    • Bán hàng
    • POS Cửa hàng
    • POS Nhà hàng
    • Đăng ký
    • Cho thuê
    Trang web
    • Trình tạo trang web
    • Thương mại điện tử
    • Blog
    • Diễn đàn
    • Trò chuyện trực tiếp
    • Học trực tuyến
    Chuỗi cung ứng
    • Tồn kho
    • Sản xuất
    • PLM
    • Mua hàng
    • Bảo dưỡng
    • Chất lượng
    Nhân sự
    • Nhân viên
    • Tuyển dụng
    • Ngày nghỉ
    • Đánh giá
    • Giới thiệu
    • Đội xe
    Marketing
    • Marketing trên MXH
    • Marketing qua email
    • Marketing qua SMS
    • Sự kiện
    • Tự động hóa Marketing
    • Khảo sát
    Dịch vụ
    • Dự án
    • Bảng chấm công
    • Dịch vụ hiện trường
    • Hỗ trợ
    • Kế hoạch
    • Lịch hẹn
    Năng suất
    • Thảo luận
    • Phê duyệt
    • IoT
    • VoIP
    • Kiến thức
    • WhatsApp
    Ứng dụng của bên thứ ba Studio Odoo Nền tảng Đám mây Odoo
  • Ngành
    Bán lẻ
    • Nhà sách
    • Cửa hàng quần áo
    • Cửa hàng nội thất
    • Cửa hàng tạp hóa
    • Cửa hàng đồ kim khí
    • Cửa hàng đồ chơi
    Ẩm thực & Dịch vụ lưu trú
    • Bar và quán rượu
    • Nhà hàng
    • Đồ ăn nhanh
    • Guest house
    • Nhà phân phối đồ uống
    • Khách sạn
    Bất động sản
    • Công ty môi giới bất động sản
    • Công ty kiến trúc
    • Xây dựng
    • Quản lý bất động sản
    • Làm vườn
    • Hiệp hội chủ sở hữu bất động sản
    Tư vấn
    • Công ty kế toán
    • Đối tác Odoo
    • Công ty marketing
    • Công ty luật
    • Tuyển dụng
    • Thanh tra & chứng nhận
    Sản xuất
    • Dệt may
    • Kim loại
    • Nội thất
    • Ẩm thực
    • Nhà máy bia
    • Quà tặng doanh nghiệp
    Sức khoẻ & fitness
    • CLB thể thao
    • Cửa hàng kính mắt
    • Trung tâm fitness
    • Chuyên gia chăm sóc sức khỏe
    • Hiệu thuốc
    • Tiệm làm tóc
    Thương mại
    • Dịch vụ sửa chữa
    • Phần cứng CNTT & Hỗ trợ
    • Hệ thống năng lượng mặt trời
    • Công ty sản xuất giày
    • Dịch vụ vệ sinh
    • Dịch vụ HVAC
    Khác
    • Tổ chức phi lợi nhuận
    • Cơ quan môi trường
    • Cho thuê biển quảng cáo
    • Nhiếp ảnh
    • Cho thuê xe đạp
    • Đại lý phần mềm
    Xem tất cả ngành
  • Cộng đồng
    Học tập
    • Khóa học
    • Tài liệu
    • Chứng chỉ
    • Đào tạo
    • Blog
    • Podcast
    Thúc đẩy đào tạo
    • Chương trình đào tạo
    • Trò chơi kinh doanh Scale Up!
    • Tham quan Odoo
    Nhận phần mềm
    • Tải xuống
    • So sánh các phiên bản
    • Phiên bản
    Hợp tác
    • Github
    • Diễn đàn
    • Sự kiện
    • Dịch thuật
    • Trở thành đối tác
    • Dịch vụ dành cho Đối tác
    • Đăng ký công ty kế toán của bạn
    Nhận dịch vụ
    • Tìm đối tác
    • Tìm kế toán
    • Gặp chuyên gia hỗ trợ
    • Dịch vụ Triển khai
    • Khách hàng tham khảo
    • Hỗ trợ
    • Nâng cấp
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Nhận một buổi demo
  • Bảng giá
  • Trợ giúp

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

  • CRM
  • e-Commerce
  • Kế toán
  • Tồn kho
  • PoS
  • Dự án
  • MRP
All apps
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Hỗ trợ

✅ eLearning feature request : Revoke course access when subscription is closed or canceled

Đăng ký nhận tin

Nhận thông báo khi có hoạt động trên bài viết này

Câu hỏi này đã bị gắn cờ
subscriptionupgraderequesteLearningfeature request
1403 Lượt xem
Ảnh đại diện
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
Ảnh đại diện
Huỷ bỏ
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!

Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!

Đăng ký
Bài viết liên quan Trả lời Lượt xem Hoạt động
✅ eLearning subscription feature request: Gradual access to course conditioned by number of subcription renewals
subscription eLearning feature request
Ảnh đại diện
0
thg 3 25
1536
✅ Events feature request : "Every other" recurrence pattern
upgrade request events Feature feature request
Ảnh đại diện
0
thg 3 25
1562
Charge for Elearning courses through a subscription method
subscription courses eLearning
Ảnh đại diện
Ảnh đại diện
1
thg 7 25
2676
Keep old Subscription functionality when upgrading to new version Đã xử lý
subscription upgrade functionality
Ảnh đại diện
Ảnh đại diện
2
thg 10 24
1451
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
Ảnh đại diện
Ảnh đại diện
1
thg 3 25
1468
Cộng đồng
  • Khóa học
  • Tài liệu
  • Diễn đàn
Open source
  • Tải xuống
  • Github
  • Runbot
  • Dịch thuật
Dịch vụ
  • Lưu trữ Odoo.sh
  • Hỗ trợ
  • Nâng cấp
  • Phát triển tùy chỉnh
  • Đào tạo
  • Tìm kế toán
  • Tìm đối tác
  • Trở thành đối tác
Giới thiệu công ty
  • Công ty của chúng tôi
  • Tài sản thương hiệu
  • Liên hệ
  • Việc làm
  • Sự kiện
  • Podcast
  • Blog
  • Khách hàng
  • Pháp lý • Riêng tư
  • Bảo mật
الْعَرَبيّة 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 là bộ ứng dụng kinh doanh có open source đáp ứng tất cả các nhu cầu của công ty bạn: CRM, thương mại điện tử, kế toán, tồn kho, POS, quản lý dự án, v.v.

Định hướng giá trị riêng biệt của Odoo là tích hợp hoàn toàn và dễ dàng sử dụng.

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