Skip to content
poweron // software edited this page Feb 29, 2024 · 18 revisions

Why should we use OCB instead of Odoo nightly ?

  • Because it contains more bug fixes than Odoo nightly.
  • And also because it is maintained for a longer time.

Does it contains fixes that are not on same Odoo version, but on higher versions ?

Some official fixes are manually backported by the community, depending on the needs of the contributors.

Does it maintain versions that are no more maintained by Odoo ?

Patches for the former versions can still be accepted. There is currently no frozen branch.

Does it contain backports?

Each version is synchronized with the official repository, thus all official backports are included. Additional OCB patches might have been backported manually, it depends.

Why is it sometimes behind Odoo ? does it concern minor updates ?

OCB is synchronized daily with Odoo. At worst there can be 24h of delay.

How to use OCB ?

You should install OCB from source with git clone and update frequently.

  • You don't need to clone the whole Git tree, only the branch for your Odoo version:
    git clone --single-branch --branch [your Odoo version] [url]
  • Add a cron job to regularly update your OCB repository (typically with git pull [options])

See Odoo documentation about installing from source.

Can I fix bugs directly in OCB ?

OCB only accept changes if you submit your fix against the official version to prevent it from being a fork in the end. All updates must be submitted to the official odoo branch for adoption in the official odoo release before they can be considered for the OCB version.

Do I need the Odoo's CLA signed to submit a patch to OCB branches ?

No. But as you need to submit your patch upstream, Odoo SA will probably ask you to sign it. The OCA encourages you to carefully read this document, as it allows Odoo SA to re-license your contribution. Some important contributors from the OCA have signed that document because this eases the work of the core maintainers and the OCB maintainers.

What about OCA's CLA ?

Generally speaking developers doesn't need to sign a legal agreement. However, all the committers must have signed the OCA's CLA

Does OCA's Runbot use OCB ?

The old Runbot was using OCB to run. But our new tool, Runboat, use Odoo (via the oca/oca-ci image). We could change it to use OCB (it is configurable) -- although we prefer to use vanilla Odoo by default to make sure OCA addons do not depend on OCB specific changes.