跳至內容
選單
此問題已被標幟
4 回覆
4498 瀏覽次數

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?

頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

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.
頭像
捨棄

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?

最佳答案

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 23
1839
2
8月 16
5479
2
6月 25
1881
0
8月 24
2220
1
8月 24
1864