Git Menu
1. Git Accounts
Git accounts store provider credentials used for git integration operations like pull and webhook linking. Currently only GitHub is supported.
Fields
- Name - Account name (required, tracked)
- Provider - Git provider (required, default:
github) - Access Token - Personal access token for authentication (required)
- Owner - Odoo user who owns this account (required, defaults to current user)
- Notes - Additional notes about the account
- Active - Whether the account is active (default: True)
- Repository Count - Number of linked repositories (computed)
2. Git Repositories
Repository configuration for webhook-based deployments. Repositories link to a git account and track commits received via webhooks.
Fields
- Repository Name - Full path in
Owner/RepoNameformat (required) - Default Branch - Branch name for deployments (required, tracked)
- Git Account - Associated git account credentials
- Repository ID - GitHub repository ID (readonly, auto-populated)
- Webhook ID - Internal webhook identifier (readonly)
- Webhook Git ID - GitHub-side webhook ID (readonly)
- Webhook State -
not_linkedorlinked(readonly, tracked) - Last Commit ID - Most recent deployed commit (readonly)
- Last Commit Message - Message of the last commit (readonly, related)
- Last Commit By - Author of the last commit (readonly, related)
- Commit Count - Total commits tracked (computed)
Actions
| Action | Description |
|---|---|
| Link Webhook | Register a webhook on GitHub to receive push events |
| Delete Webhook | Remove the webhook from GitHub |
| Create Branch | Create a new branch on GitHub from an existing one |
| Push Commit | Clone and deploy code to a root server with syntax validation |
Syntax Validation
When deploying commits, the system validates Python, XML, and JavaScript syntax before pushing to the server. If errors are found, the partner is notified.
3. Git Commits
Read-only log of all commits received via webhooks.
Fields
- Commit Message - Commit description text (readonly)
- Commit ID - GitHub commit SHA hash (readonly)
- Commit By - Author name (readonly)
- Branch - Branch where the commit was pushed (readonly)
- Account - Associated git account (readonly)
- Repository - Associated repository (readonly)