Skip to Content
Menu
This question has been flagged
4 Replies
3653 Views

Hello, everyone.

I have a question. How do I update my Odoo CE version from Linux or Windows? For example: from 16\\\.0\\\.20230901 to 16.0.20231002?

Avatar
Discard
Best Answer

in my company (where I work), this is the steps (for Linux):
1. download using "wget" to get the latest "nightly" source
e.g.:  sudo wget https://nightly.odoo.com/16.0/nightly/src/odoo_16.0.latest.tar.gz

2. once it's downloaded, head to your 'root' or 'home' folder, there you will see the downloaded zipped (compressed) file
3. unpack (extract) it to your desired location (only choose the inner contents, not the outer one)
e.g.: /odoo/odoo-16.0/
4. go there, get into the 'setup' folder, copy the "odoo" file, go back to outer folder, paste it there
5. rename that "odoo" file into "odoo-server", then right-click, choose and click Properties, open the Permissions tab, then check the 'Allow executing file as program', then close


or you can just open the https://nightly.odoo.com/16.0/nightly/src/ manually on your browser, and look it up for yourself the desired release date and download it

Avatar
Discard
Best Answer

Hi Mike, update your Odoo Community Edition version on Linux to Windows:

  1. Backup: First, backup your Odoo data.
  2. Access Server:
  • On Linux, use SSH or terminal.
  • On Windows, open a command prompt.
  1. Navigate to Odoo Directory:
    • Use cd to go to the Odoo installation directory.
  2. Update Odoo Code:
    • Run git pull origin master (on Linux) to update the code. Replace master with your desired version.
  3. Update Dependencies:
    • Run pip3 install -r requirements.txt to update Python dependencies.
  4. Apply Database Updates:
    • Execute ./odoo-bin -d your_database_name -u all to apply database updates. Replace your_database_name with your database name.
  5. Restart Odoo:
    • Restart Odoo, e.g., systemctl restart odoo (on Linux).
  6. Verify Update:
    • Check the Odoo web interface for the updated version. Ensure backups and test updates in a staging environment before applying them to production.
Avatar
Discard

Hello!

I tried this with odoo17 and was working. But my company has the id 1. After the upgrade it overwrites the fields. Did I need to move my company to another id?

Best Answer

You can just pull the new code, no script to execute if you stay in stable version. All commits are retrocompatible.

Avatar
Discard
Best Answer

First you need to take update of database and source code to different repository
Post that you are require to pull the latest source code from git to your present Odoo repository
Then you need to run Odoo server with -u all command to update your present Odoo modules and database

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 23
1223
2
Aug 16
4434
1
Aug 24
777
0
Aug 24
1118
1
Aug 24
883