上QQ阅读APP看书,第一时间看更新
How to do it…
To apply a source modification to your addon from GitHub, you need to perform the following steps:
- Stop the instance using that addon
- 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
- Create a local tag for the project so that you can revert to that version in case things break:
$ git checkout 11.0
$ git tag 11.0-before-update-$(date --iso)
- Get the latest version of the source code:
$ git pull --ff-only
- Update the partner_address_street3 addon in your databases (refer to the Install and upgrade local addon modules recipe)
- Restart the instance