To apply a source modification to your add-on from GitHub, you need to perform the following steps:
- Stop the instance using that add-on.
- Make a backup if it is a production instance (refer to the Manage Odoo server databases recipe in Chapter 1, Installing the Odoo Development Environment).
- Go to the directory where partner-contact was cloned:
$ cd ~/odoo-dev/my-odoo/src/partner-contact
- Create a local tag for the project so that you can revert to that version in case things break:
$ git checkout 12.0
$ git tag 12.0-before-update-$(date --iso)
- Get the latest version of the source code:
$ git pull --ff-only
- Update the partner_address_street3 add-on in your databases (refer to the Installing and upgrading local add-on modules recipe).
- Restart the instance.