Packages & Modules
1. Subscription Packages
Packages are reusable collections of Odoo modules that define what functionality a subscription includes.
Fields
- Name - Package name (required, unique, translatable)
- Modules - Many2many relation to subscription modules included in this package
- Company - Company context
Package Usage
When a subscription is created (manually or from a sale order), the selected packages determine which Odoo modules are installed on the instance. A subscription can have multiple packages.
2. Subscription Modules
Individual Odoo modules that can be grouped into packages.
Fields
- Technical Name - Odoo module identifier like
account,sale,hr(required, unique) - Description - What the module does (optional)
3. How Packages Work
Product (saas_package) → Subscription (subscription_package) → Module Installation
- Products are configured with one or more SAAS packages
- When a customer purchases the product, the subscription inherits the packages
- During the build process, all modules from all selected packages are installed on the instance
- Packages can be shared across multiple products and subscriptions
Package Deletion
Packages linked to active subscriptions cannot be deleted (restricted by on_delete=restrict).