How Odoo.sh projects and branches work for custom Odoo code
An Odoo.sh project is Odoo's hosted environment for running Odoo with your own code, tied to a Git repository that you control. Teams with custom modules use its branches to move a change from development to staging and then to production in a fixed order, so that code reviewed on one branch is the same code that reaches the live database. Instead of copying files onto servers by hand, each branch builds its own environment from the repository, which makes it easier to see what changed, when, and in which environment. Before you plan around this model, confirm that your organization is on the Custom plan, because Odoo's pricing page states that only the Custom plan can be hosted on Odoo.sh or on-premise, and that only Custom includes custom modules, external API access and multi-company. A Standard or One App Free subscription cannot host custom code on Odoo.sh, so the hosting decision and the licensing decision have to be made together.
The edition you run also shapes what you can host. The Community edition is open source under the LGPL-3.0 license and its code is on GitHub, while the Enterprise source code is not publicly available and requires a subscription or partner access. Your repository therefore needs to be explicit about which Enterprise code, if any, it depends on and how that code reaches the build. Ask Odoo or your partner to confirm, for your specific plan and version, how Enterprise addons are supplied to a Odoo.sh project and whether any module in your repository depends on Enterprise-only features. Mixing an incorrect edition assumption into the repository is one of the earliest problems teams find after a first build fails, so check it before the first branch is created.
The practical question for the team is who owns each branch and who may push to it. Decide which branch reflects production, which one serves as staging for testing with copied data, and which one each developer uses for changes, and write those rules down before the first merge. Confirm with Odoo how the GitHub connection and webhook are configured for your organization, who holds the administrative rights to change them, and how access to the project and SSH is granted and removed when people leave. These are the controls an auditor or security reviewer will ask about, and they are easier to set up at the start than to reconstruct after the first production incident.
How a GitHub push reaches production on Odoo.sh
The diagram starts with a developer pushing commits to a branch in the client's GitHub repository, where a pull request must pass the client's own review before it merges. The merge sends a webhook that triggers a build on the matching Odoo.sh branch. Changes then move from development to staging to production, and a neutralized copy of the production database refreshes staging so tests run on data shaped like production without live customer records. Check who can approve merges, which branch maps to which environment, and how often the neutralized copy is refreshed.
Code and data paths between GitHub, the client review gate and Odoo.sh environments.
What each branch is for
The production branch runs the database and filestore that your users and customers work in every day. Its purpose is stable, reviewed code and live business records, so changes reach it only after they have passed the earlier branches. Ask your team to confirm how Odoo.sh names this branch and which branch it deploys from in the current documentation.
- Who pushes: Restrict merges to a small group of release owners, with pushes done through reviewed pull requests rather than direct commits.
- Data held: Live transactional data and the production filestore, including attachments and documents that are subject to your retention and privacy rules.
- How builds run: Each deployment rebuilds the branch from the repository, so confirm which modules are installed or updated and how module upgrades are triggered.
- What to review: Confirm that the change was tested on staging, that module upgrade steps are documented, and that a rollback or restore point exists before the release.
- Access: Limit SSH access and log every session, since production holds the most sensitive records.
Before any change lands here, check that the same commit has already been built and tested on a lower branch.
The staging branch rehearses a release against a copy of production data before anything reaches live users. It exists to catch failed module upgrades, broken customizations and slow screens under realistic volumes. Because it is built from a copy, the copy must be handled as sensitive data unless the neutralized copy is used, and the team should confirm with Odoo how that neutralization is applied in the current documentation.
- Who pushes: Developers and the release lead merge feature work here, and only after code review on the development side.
- Data held: A recent copy of production data, normally neutralized so that outgoing email and payment integrations do not act on real customers.
- How builds run: Each push rebuilds the branch and upgrades modules on the copied database, so the build log shows the exact migration steps production will run.
- What to review: Test key business flows such as sales orders, invoicing, stock moves and reports, and check that scheduled actions are disabled or redirected.
- Refresh: Decide how often the copy is refreshed and who approves a refresh that contains new personal data.
Do not treat a passing staging build as proof of production readiness until its data has been checked against the production copy.
The development branch is where custom modules are first written, changed and tried. It is the place for fast iteration, so its data is usually small, fabricated or a reduced sample rather than a full production copy. The main risk here is developers copying real data into a branch with weaker access controls, so set the rules for what data may enter this branch before work starts.
- Who pushes: Individual developers push feature branches and open pull requests into development, with the repository's review rules applied.
- Data held: Test or sample records, with no live customer data unless your data handling policy explicitly allows it.
- How builds run: Builds run on every push, so broken module manifests, failed imports or missing dependencies show up early.
- What to review: Check code quality, access rules and record rules on new models, and automated tests where the project has them.
- Secrets: Keep API keys and credentials out of the repository and out of development configuration files.
Before code moves to staging, confirm that the development build passed and that the change has a clear upgrade note for the staging team.
Each branch is a gate, and the rules for moving a change from one to the next should be written down before the project starts. Review gates tie the repository workflow to the approvals your security, compliance and business owners expect. The exact enforcement features depend on how Odoo.sh and GitHub are configured, so confirm current options with Odoo and your repository administrators.
- Code review: Require at least one reviewer who did not write the change, and record approvals in the pull request.
- Upgrade notes: Each change that alters models, views or data files should state the migration or data step it needs.
- Test evidence: Keep the build result and the staging test outcome attached to the release record.
- Approval owner: Name the person who approves promotion to production, separate from the developer who wrote the change.
- Rollback plan: Confirm how a failed release is reversed, including whether a database restore is needed.
Ask your implementation partner to show the gate checklist in writing before the first release.
Which Odoo.sh project setup fits your team
This table compares three ways to organize Odoo.sh projects with custom code: one repository with three branches, a separate repository per customization stream, and a staging-only environment used for upgrade testing. Read each row against your team size, how many people change code at once, and how much risk production can carry. The main takeaway is that the coordination cost of each option is paid in merges and reviews, while the risk to production depends on how strictly branches map to environments.
| Option | When it fits | Coordination cost | Risk to production |
|---|---|---|---|
| One repository, three branches | One product team with a shared release cadence and a small number of developers changing the same modules | Low to moderate. Developers share one history, but merges into the staging and production branches need review | Moderate. A bad merge reaches production unless staging is tested first and production is only updated from reviewed commits |
| Separate repository per customization stream | Several teams or vendors own different apps, such as a sales extension and a warehouse extension, with separate release timing | Higher. Shared dependencies, module names and version alignment must be agreed across repositories | Lower per stream, but a mismatch between repositories can break production when both are deployed together |
| Staging-only environment for upgrade testing | Teams preparing a major version change that need a place to test ported custom code before production is touched | Moderate. Someone must own the upgrade branch, rebuild it and keep it in step with production changes | Low for production itself, but risky if upgrade findings are not carried back into the production code path |
| Confirm before deciding | Check with Odoo how your plan and project type handle branches, builds and storage limits for your version | Ask who approves merges, who holds SSH access and how staging databases are refreshed | Ask how rollbacks, neutralized copies and backups are handled for each branch |
How to set up the GitHub link and first builds
This sequence connects a GitHub repository to an Odoo.sh project, builds the first branches, and confirms the staging database is safe for testers. The output is a project where every push produces a checked build and a neutralized test copy.
Confirm the Custom plan and Odoo.sh access
Before anything else, confirm with Odoo that your subscription is on the Custom plan, since the pricing page lists Odoo.sh hosting and custom modules only under that plan. Ask who on your side holds the account owner role and who will receive project administrator access. You are done when the project appears in your Odoo.sh dashboard and the account owner can see the production, staging and development branch slots.
Create the repository layout for custom addons
Create a GitHub repository that holds only your custom addons and the configuration Odoo.sh needs, with one folder per module at the root. Keep third-party or Community Association modules in their own repositories or as declared dependencies, so upgrades stay traceable. Commit a short README that names the owning team and the Odoo version. You are done when a clone of the repository shows each addon as a separate folder and the team agrees who merges to the main branch.
Connect the GitHub webhook
In the Odoo.sh project settings, link the GitHub repository and authorize the Odoo.sh GitHub integration for that repository only. Confirm the webhook is registered in the repository settings, then push a small test commit to a non-production branch. You are done when the push appears as a new build in the Odoo.sh interface within the same session, which shows the webhook is delivering events.
Create the production, staging and development branches
Create the branches that map to your environments: production from the release branch, staging from a copy of production for testing, and development for feature work. Agree a rule for how changes move from development to staging to production, and who approves each merge. You are done when each branch shows its own build entry in the project and the team can state which branch receives which kind of change.
Run the first build and read the logs
Trigger the first build on the development branch and open its log in the Odoo.sh interface. Check that dependencies install without errors, that each custom module loads, and that the server reports no import or manifest failures. Fix any errors in the repository and push again. You are done when the build completes with no errors in the log and each custom module is listed as installed or installable.
Verify the staging database is neutralized
Once the staging build is ready, open a test session and confirm the database is neutralized: outgoing email should be blocked or routed to a test mailbox, scheduled actions tied to live integrations should be inactive, and payment and shipping providers should be set to test mode. Ask Odoo to confirm the exact neutralization behavior for your version, since the documentation describes duplication with neutralization for test copies. You are done when a tester can log in, a test email is not sent to a real customer, and a sample integration call goes to a sandbox endpoint.
Confirm SSH access and record the setup
Confirm which named people have SSH access to each branch and record the access path in your runbook, keeping keys personal and removing access when someone leaves. Store the repository, branch map, webhook owner and approval rules in a short document the team maintains. Ask Odoo to confirm any SSH limits for your plan before testers rely on it. You are done when each named engineer can open an SSH session to the development branch and the runbook lists every access holder.
Storage needed for imports and staging copies
Storage is a planning input for Odoo.sh projects, not an afterthought, because two things grow with the data you load: the PostgreSQL database and the filestore that holds attachments, generated documents and imported files. Large opening-balance imports, historical sales orders, product images and scanned documents all add to both. Before the project is scoped, ask Odoo for the storage limits that apply to your plan, including how much database and filestore space a project receives, whether extra storage can be added, and what happens when a limit is reached during an import. Those answers should shape how you split the migration into batches and how much headroom you keep for go-live.
Staging behaves differently from production in a way that matters for planning. A staging branch is built from a copy of production data, and that copy takes space in the same project. If your production database and filestore are already large, every staging refresh repeats that footprint, and a copy made during a heavy import can capture a half-loaded state. Ask Odoo how staging copies are created and refreshed on your plan, how long a copy is kept, and whether neutralized copies are used for outgoing email, payment and scheduled actions. Treat the staging copy as a test instrument: schedule refreshes around import rehearsals and confirm the team knows which copy they are testing against.
Put the storage questions into the written scope and the quote. Name the expected data volume by module (contacts, products, accounting history, documents), the number of rehearsal imports you expect to run in staging, and the point at which production data will be frozen for cutover. Ask whether the filestore is included in the copy or must be handled separately, and who pays if a limit is exceeded during testing. Storage limits and copy behavior change between Odoo versions and plans, so confirm the current figures in writing with Odoo before the build starts rather than relying on figures from an older guide.
Securing SSH access, GitHub permissions and neutralized data
Odoo.sh gives every developer, branch and log stream a path into your code and data, so access has to be decided before the first build. The cards below cover the controls that connect SSH keys, GitHub roles, review rules and the copies of production data your team works with.
SSH keys per developer
Each developer should have an individual SSH key registered with the project, rather than sharing one key across the team. Individual keys let you see who connected, and let you remove one person's access when they leave without rotating credentials for everyone. Ask your Odoo.sh contact how keys are added and removed for each project, and record who approved each key. Confirm the key types the platform accepts before you write a key rotation procedure.
Least-privilege GitHub roles
The GitHub account that connects the repository needs only the permissions required to read code and receive webhooks. Give developers write access to feature branches and keep repository admin rights with a small named group. Review collaborator lists each quarter, because a stale outside contributor with write access can push directly to a branch that Odoo.sh builds. Confirm which GitHub permissions the integration requests in your organization before you approve it.
Branch protection and review before merge
Protect the production and staging branches so that changes arrive only through reviewed pull requests. Require at least one approving review, block force pushes, and block deletion of the branch. Because Odoo.sh deploys what lands on a tracked branch, a merge is effectively a release. Agree who may approve a merge into production and whether the same person can both write and approve the change.
Neutralized copies for development
Development and staging databases should not hold live customer or employee records unless a documented need requires it. Odoo's on-premise documentation describes database duplication with neutralization for test copies, which disables scheduled actions and outgoing mail. Confirm how Odoo.sh handles neutralized staging databases on your plan, and check whether custom code writes to external systems that a copy could still reach.
On-premise docsWho can read production logs
Production logs can contain record identifiers, error payloads and sometimes personal data, so log access is a data access decision. Limit log viewing to a named operations group, and keep developers on staging logs unless an incident needs production detail. Write down how a support engineer requests production log access, how long it lasts, and how the access is removed afterwards. Ask the platform which log retention applies on your project before you set the policy.
Questions buyers ask about Odoo.sh projects and cost
What drives the cost of an Odoo.sh project?
The cost follows the amount of custom work, not the hosting line. Odoo.sh itself is only available on the Custom plan according to Odoo's pricing page, so the subscription is one recurring item, and the rest is services and internal time. The main drivers are the number of custom modules and how many of them change standard Odoo behavior, the number of integrations with other systems, the volume of data to migrate and clean, the number of branches and environments your team needs, and how much testing your release process requires. Ask any partner for a quote that separates one-time build work, data migration, testing and any recurring retainer for upgrades and support, and that states who pays for Odoo subscriptions and who pays for the implementation.
How long does Odoo.sh setup usually take, and what changes it?
No fixed duration can be given here, so treat any timeline as something to agree in writing against a defined scope. Setup itself, which covers linking the GitHub repository, configuring the branches and creating the first builds, is usually the shortest part. Duration grows with the number of custom modules, the number of integrations, the state of the source data, the number of people who must approve test results, and whether an Odoo version upgrade is part of the same project. Odoo's standard support window and the two-year cadence of mandatory major upgrades on Odoo.sh also affect planning, so confirm the target version before the schedule is set.
Can our team run the GitHub workflow without a partner?
Yes, a capable in-house team can run the workflow without a partner, provided it has someone who understands Odoo module structure, Git branching and how builds react to a push. The workflow depends on a repository, a webhook connection and branches for production, staging and development, so the setup is mostly configuration and discipline. The harder part is keeping custom code compatible with each Odoo release, reviewing changes that touch data, and deciding when a staging copy is safe to use. Teams that lack this experience often ask for a partner to design the branch model, review the first few releases and document the runbook, then take over operations.
What does the work need from our developers and admins?
Your developers need working knowledge of Python, the Odoo module format and Git, and they must be able to write and maintain tests for custom code. Your administrators need access to the Odoo.sh project, the ability to manage user accounts and roles, and a process for reviewing neutralized staging data before testers use it. SSH access is available on Odoo.sh, so decide in advance which people hold it, how keys are issued and removed, and what they are allowed to change. Ask for a written list of responsibilities so that each role knows who approves a merge, who runs data imports and who signs off a go-live.
How do staging refreshes fit into a release cycle?
Refresh the staging database before each test cycle, not after the release is already in progress, so testers work against recent data without touching production. Staging databases on Odoo.sh are neutralized, which means outgoing email, payment and external connections are disabled, so confirm that each integration in staging points to a test endpoint before any test starts. Plan the refresh as a fixed step in the release calendar, and record which code branch and database snapshot each test run used. If imports need more storage than the default, check the project's storage capacity before the refresh, because a large copy can block the next build.
What goes wrong when custom modules are built without a branch model?
The common failure is that development changes reach production before they have been tested against current data, which surfaces as broken reports, failed scheduled actions or data that does not match what finance or operations expect. A second failure is a custom module that depends on internal Odoo behavior that changes in the next major version, so the upgrade becomes a rewrite. Both problems are easier to prevent when the branch model, review rules and test steps are written down before the first custom module is merged. Ask any partner to show how a change moves from development to staging to production and what evidence is kept at each step.
Is Odoo.sh the right choice if we need extended support?
Check this before you commit, because Odoo's documents state that paid extended support after the standard window is limited to Odoo.sh for select versions and on-premise, and that security patches are only provided during standard support. Odoo's standard support covers the first three years after a major release on Odoo Online, Odoo.sh and on-premise. Confirm with Odoo which versions currently qualify for extended support on Odoo.sh, what it costs and how it is billed, and how long your chosen version remains covered. This answer affects the whole plan, so resolve it before choosing the target version.
How DeployOpen scopes and supports Odoo.sh projects
DeployOpen scopes an Odoo.sh project in writing before any code moves, and the scope starts with the repository and branch model. The agreed document names the GitHub repository that Odoo.sh watches through its webhook, who holds admin rights on it, and how custom modules, __manifest__.py version strings and third-party addons are organized. It also records the production, staging and development branches, which branch each person pushes to, and the review gate a change must pass before it merges into production. Your team should decide these answers first, because they determine how much of the build is planned and how much is left to discovery.
The written scope also covers the parts that tend to fail later: how and when the staging database is refreshed from production, what the neutralization step disables, who approves a refresh, and where import files are staged so that large data loads have enough storage. The scope sets the upgrade path as well, including the test of the upgraded database on a staging branch before any production change, and it lists the custom modules that must be ported when the major version changes. Ask for a quote that prices these items separately, so you can see which ones are one-time setup and which recur at each refresh or upgrade. Ongoing support, upgrades and continuous testing are available as retainers, and the retainer scope should be written with the same level of detail as the initial build.
At handover, DeployOpen delivers the documentation your team needs to run the project without us: the branch and review rules, the refresh and neutralization runbook, SSH access procedures, the list of custom modules with their owners, and the upgrade checklist. Confirm with Odoo, through its documentation and your subscription terms, which Odoo.sh features and plan options apply to your account before you commit to a scope, because hosting options and plan conditions change between releases. DeployOpen does not issue audit reports or certifications for the project; if your compliance team needs evidence of the change process, ask for the review records and branch history to be included in the handover.

