Skip to content
TraceNcode
All articles

Odoo · Source

Odoo GitHub Branches and the Latest Version

· 6 min read

The odoo/odoo repository has more branches than a new developer expects. Cloning all of them wastes time and disk. This is the map we use when someone asks for the latest version, and the dates on it have to be checked against Odoo’s own release notes.

What the branch names mean

A branch named 18.0 or 19.0 is a stable series. Bugfix commits land there. It is the branch you run in production if that is the version you bought or you deployed. master is the development line. It moves every day. It is not a production version. A saas-* branch is the line Odoo.sh and Odoo Online are on. It is ahead of the stable series in places and it is not the same commit as the 18.0 branch on the day you look.

“Latest” is therefore a question. Latest stable is the highest numbered stable branch that has been released. Latest on Odoo Online may be a saas branch. Latest on master is unstable. Say which one you mean before anyone clones.

Clone one branch

A full clone downloads every branch and a long history. For a build you only need one branch and a shallow history. The usual command is a single-branch clone of the version you will run, for example the 19.0 branch if that is the project. Depth 1 is enough to build. It is not enough if you need to bisect a bug. Deepen the clone when you have a reason.

Pin the commit you deployed. A branch name moves. A commit hash does not. The certification note is a reminder that an exam version and a production commit are also different facts.

Community and Enterprise source

Community source is the public odoo/odoo repository. Enterprise source is a separate repository Odoo gives to partners and Enterprise customers. It is not a public GitHub folder you should expect to clone anonymously. An addon that imports an Enterprise module will not start on a Community-only tree.

If the project is Community, say so and do not depend on Enterprise menus. If the project is Enterprise, the deployment needs the Enterprise repository and a subscription. Mixing them by copying a module out of a zip is how upgrades break. We implement both editions. The edition comparison is the buying page.

Release timing

Odoo’s major release has historically landed in the autumn, with the stable branch opening before the packaged release. The month and the version number for the next release are Odoo’s announcement, not a date we invent. [VERIFY: the current stable version and the published timeline on odoo.com.] saas branches move between those releases. Do not tell a customer that master is the version they will go live on.

TraceNcode’s published status is “Official Odoo Partner”. partnerTier in the repository is null. We do not claim Gold, Silver, Ready, or Certified. A partner contract does not change what master is. It changes whether you are allowed to fetch Enterprise source.

A single-branch clone looks like this in practice: you name the branch, you limit depth, and you record the commit in the deployment note. You do not git pull on the server on a Friday because “latest” moved. If you need a fix from a later commit, you cherry-pick or you move the pin on purpose, on a copy, with a backup. The saas branch is the one to read if the customer is on Odoo Online or Odoo.sh and a bug exists there that the stable branch does not have yet. It is still not a reason to develop on master.

Community addons from OCA follow the same version branches. An OCA module for 18.0 does not drop onto 19.0 unchanged. Enterprise modules follow Odoo’s Enterprise repository, version by version. If your custom module imports both, the deployment has to have both trees at the same series. A Docker image that only copied Community will start the web client and then fail on the first Enterprise menu. Check that before you demo.

Release timing is why “latest version” searches are a trap. The packaged release, the branch opening, and the day Odoo Online moves are three dates. [VERIFY: those dates on odoo.com for the version you care about.] A project plan that says “we will go live on the new version the week it is announced” is a plan to test on your customers. Wait until you have run your custom modules on that branch. The certificate you sat last year does not move with the branch.

When someone asks for the latest version in a support ticket, answer with the commit you deployed and the branch name. “We are on latest” is how two environments drift. Odoo.sh tracks a branch for you and still lets you pin. A self-hosted server does not move unless you pull. Community and Enterprise must move together. If you pull Community 19.0 and leave Enterprise on 18.0, the registry will fail in ways that look like a missing field. The fix is to deploy both trees from the same series, not to edit the core.

A shallow clone is the right default for CI and for a developer laptop that only builds one version. It is the wrong default for a maintainer who bisects. Keep one full clone on a build machine if you need history. Everyone else clones the branch the project named. Delete master from the production remote tracking so a script cannot check it out by accident. That is the whole operational rule. The rest is reading Odoo’s release note when they publish one. [VERIFY the note.]

Developers also ask whether they should fork. Fork when you need a private commit. Do not fork to “keep latest” and then forget to merge. A fork of master is a second unstable line. A fork of 19.0, or whichever stable series you run, is a place for a cherry-pick you are not allowed to put upstream. Enterprise stays in its own clone with its own credentials. Do not vendor Enterprise modules into a public repository. That is a licence problem, not a git trick. Community modules you write can live in your own repository, depending on Community, version-pinned. That layout survives an upgrade. A zip dropped into the addons folder does not.

If you are teaching a new developer, start them on the stable branch the customer runs, not on master and not on a random tutorial that cloned an old series. Have them add a field, upgrade the module, and read the log. Then show them the Enterprise tree only if the project has a subscription. The latest version is the one in the deployment note. The GitHub page is where you fetch it. Odoo’s release post is where you learn that a new number exists. Until that post is checked, do not put the number in a proposal. [VERIFY the post.]

Frequently Asked Questions

Which Odoo GitHub branch is the latest version?+

Latest stable is the current numbered branch Odoo has released. master is development. saas-* is the online line. [VERIFY the number on odoo.com.]

Should I clone every branch?+

No. Clone the one version you will run, shallow, and pin the commit you deploy.

Is Enterprise source on the public odoo/odoo repository?+

No. Community is public. Enterprise is a separate repository for subscribers and partners.

Is master safe for production?+

No. It changes daily. Production is a stable branch or the saas branch your hosting actually runs.

Does Official Odoo Partner status change the branches?+

TraceNcode’s published status is “Official Odoo Partner”. partnerTier in the repository is null. We do not claim Gold, Silver, Ready, or Certified.