Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
4429 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit

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?

Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 23
1752
2
srp 16
5416
2
čvn 25
1788
0
srp 24
2156
1
srp 24
1818