Knowledgebase

Question About Servers

How to Update Odoo with a Github Pull Request Print

  • 0

This article outlines how to update your Odoo instance to the latest code with a git pull request. This type of update helps to update your code base with the latest upgrades, bug fixes, and new features/functionality. Please note that this update will not change the version of Odoo that you are currently running.

Step 1: Connect to your server via SSH

If you are unsure about how to connect to your server via SSH, see this article. Once you connect, you will be able to execute any commands in your server's terminal.

Step 2: Switch to the Odoo user

When performing Odoo operations, it is advisable not to run commands as root. Use this command to switch to the odoo system user.

su odoo

Step 3: Navigate to your Odoo directory

Navigate to the folder that contains the "odoo-bin" file. Use the command below, however, be sure to use your correct path.

cd /opt/odoo/odoo13

When you are in the correct directory and you list the files using the ls command, you will see a list of files similar to the image below.

odoo-update-list-directory.png

Step 4: Run the pull request

This pull request fetches and applies all the new features and bug fixes that have been applied to the Odoo git repository since the last update. Just run the following command to get and apply the updates.

git pull

Step 5 (Optional): Check the git log

After updating the Odoo instance, you can check the git logs to see the changes that have been applied to your odoo instance. Use the following command to check the git logs.

git log --oneline

Step 6: Restart the Odoo service

After the updates have been applied, you need to restart the odoo service for the updates to take effect. For this, you need to switch back and run the following command as an administrator.

sudo service yourOdooService restart

Please be sure to replace "yourOdooService" with the correct name of your odoo service.

Congratulations! You have successfully updated your Odoo instance using a git pull.


Was this answer helpful?

« Back

Enterprise-Grade Hardware

  • Samsung
  • Juniper
  • Western Digital
  • Supermicro
  • LSI
  • Intel
  • R1Soft Backups
  • cPanel
  • MySQL
  • Parallels
  • HP Partner