上QQ阅读APP看书,第一时间看更新
How to do it…
To apply and try out a GitHub pull request for an addon, you need to perform the following steps:
- Stop the instance.
- 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)
- Pull the branch of the pull request. The easiest way is to use the number of the PR, which should have been communicated to you by the developer. In our example, this is the pull request number 123:
$ git pull origin pull/123/head
- Update the partner_address_street3 addon module in your database and restart the instance (refer to the Installing and upgrading local addon modules recipe).
- Test the update—try to reproduce your issue, or try out the feature you wanted.
If it does not work, comment on the PR page of GitHub, explaining what you did and what did not work so that the developer can update the PR.
If it works, say so on the PR page too; this is an essential part of the PR validation process, and it will speed up the merging in the main branch.