Collaborators
1. Collaborator Overview
Collaborators allow subscription owners to grant access to team members through the customer portal.
Fields
- Subscription - Parent subscription
- User - Odoo portal user (Many2one)
- Name - Collaborator display name
- Email - User email address (readonly)
- UUID - Unique token for invite links (auto-generated)
- Rule - Access level:
user- Standard access (default)admin- Full administrative access
- State - Invitation status:
invite- Invitation sent, pending acceptanceapprove- Collaborator accepted and active
- New User - Whether this is a new portal user (no existing account)
2. Invitation Flow
Owner invites email → System sends invite email → Collaborator clicks link → State: approve
- Subscription owner or admin invites a collaborator by email
- System generates an encrypted invite link with UUID and timestamp
- Invite email is sent to the collaborator
- Collaborator clicks the link at
/saas_collaborator_invite/<encrypted_token> - If new user, a portal account is created with a generated password
- Collaborator state changes from
invitetoapprove - Approved collaborators are synced to the subscription's
collaborator_ids
3. Collaborator Portal Access
Once approved, collaborators can access the subscription through the customer portal.
Available Portal Actions:
| Feature | User | Admin |
|---|---|---|
| View subscription details | Yes | Yes |
| View backups | Yes | Yes |
| Create backups | Yes | Yes |
| View stages | Yes | Yes |
| Create stages | Yes | Yes |
| View git commits | Yes | Yes |
| Execute SQL queries | Yes | Yes |
| Manage collaborators | No | Yes |
| Manage domains | No | Yes |
4. Collaborator Actions
| Action | Description |
|---|---|
| Send Invite | Send invitation email to the collaborator |
| Remove | Delete the collaborator (logs "Collaborator removed" message) |
| Change Rule | Switch between user/admin (logs the change) |
Audit Trail
All collaborator changes (invitations, removals, rule changes) are logged as messages on the subscription for audit purposes.