Knowledgebase

Question About Servers

How to Upgrade an Odoo Module from Ubuntu Terminal SSH Print

  • 0

This article outlines how to upgrade an installed Odoo module in Ubuntu from the terminal. You will need to upgrade a module if you want to get a later release than what you have.

Pre-requisites:

  • Ubuntu VPS with Odoo installed.
  • SSH access to your VPS with root privileges.
  • Downloaded directory of the new version of the module.

Step 1: Navigate to the directory of the module you want to upgrade

This is the addons directory that is configured in the "odoo.conf" file. To navigate to this directory, use the following command. Be sure to replace "<path_to_directory>" with the correct path.

cd <path_to_directory>

Step 2: Replace the old module directory with the new module directory

In this step, since one module is just a newer version of the other, the name of the folder and the file structure will be similar. It is always good practice to create a backup of the directory before deleting it. Use the following command to delete the old directory. Be sure to replace "<module_directory>" with the correct name of the directory.

rm -R <module_directory>

After deleting the old directory, use the following command to copy the new module directory into the addons folder. Replace "<path_to_downloaded_new_module>" with the path to the downloaded new module. The dot at the end of the command tells Ubuntu to copy into the current directory.

cp -R <path_to_downloaded_new_module> .

Step 4: Navigate to the directory with the "odoo-bin" file

To do this, use the following command. Replace "<path_to_odoo_bin>" with the actual path to the required directory.

cd <path_to_odoo_bin>

Step 5: Update the module

To update the module, execute the following command with the correct parameters as described. 

./odoo-bin -c /etc/odoo.conf  -u module_name  -d database_name

Where

-c odoo configuration file path. Be sure to refer to the actual configuration file of your Odoo installation.

-u odoo module name

-d database name

After the update has finished, your module will have been upgraded.


Was this answer helpful?

« Back

Enterprise-Grade Hardware

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