Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
4430 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.
Awatar
Odrzuć

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?

Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 23
1752
2
sie 16
5416
2
cze 25
1788
0
sie 24
2156
1
sie 24
1818