-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Odoo 14 Development Cookbook
By :

Most add-ons that are available on GitHub are subject to change and do not follow the rules that Odoo enforces for its stable release. They may receive bug fixes or enhancements, including issues or feature requests that you have submitted, and these changes may introduce database schema changes or updates in the data files and views. This recipe explains how to install the updated versions.
Suppose you reported an issue with partner_contact_gender
and received a notification that the issue was solved in the last revision of the 14.0
branch of the partner-contact
project. In this case, you will want to update your instance with this latest version.
To apply a source modification to your add-on from GitHub, you need to perform the following steps:
partner-contact
was cloned:$ cd ~/odoo-dev/my-odoo/src/partner-contact
$ git checkout 14.0 $ git tag 14.0-before-update-$(date --iso)
$ git pull --ff-only
partner_address_street3
add-on in your databases (refer to the Installing and upgrading local add-on modules recipe).Usually, the developer of the add-on module occasionally releases the newest version of the add-on. This update typically contains bug fixes and new features. Here, we will get a new version of the add-on and update it in our instances.
If git pull --ff-only
fails, you can revert to the previous version using the following command:
$ git reset --hard 14.0-before-update-$(date --iso)
Then, you can try git pull
(without --ff-only
), which will cause a merge, but this means that you have local changes on the add-on.
If the update step breaks, refer to the Updating Odoo from Source recipe in Chapter 1, Installing the Odoo Development Environment, for recovery instructions. Remember to always test an update on a copy of a database production first.