Upgrade Odoo 10 to 11 Using OpenUpgrade

Steps:

1. Create directory openupgrade
# mkdir /var/tmp/openupgrade

2. Open folder
# cd /var/tmp/openupgrade

3. Download migrate.py from module openupgrade odoo 11
# wget https://raw.githubusercontent.com/OCA/OpenUpgrade/11.0/scripts/migrate.py

4. Moved the file to the same folder as migrate.py instead of using the full path and it resolved the issue
#
sudo cp /etc/odoo-server.conf /var/tmp/openupgrade
# sudo chown admin:admin odoo-server.conf

Odoo 11 requirements & ERRORs

Odoo 11 requirements

# sudo apt-get install python3 python3-pip -y
# sudo apt-get install wget git bzr python-pip gdebi-core -y
# sudo apt-get install python-pypdf2 python-dateutil python-feedparser python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-docutils python-psutil python-mock python-unittest2 python-jinja2 python-pypdf python-decorator python-requests python-passlib python-pil -y
# sudo pip3 install pypdf2 Babel passlib Werkzeug decorator python-dateutil pyyaml psycopg2 psutil html2text docutils lxml pillow reportlab ninja2 requests gdata XlsxWriter vobject python-openid pyparsing pydot mock mako Jinja2 ebaysdk feedparser xlwt psycogreen suds-jurko pytz pyusb greenlet xlrd
# sudo apt-get install python3-suds
# sudo apt-get install node-clean-css -y
# sudo apt-get install node-less -y
# sudo apt-get install python-gevent -y
# sudo pip3 install future
# sudo pip install future
# sudo pip3 install configparser
# sudo pip install configparser
5. Run migrate with reguler user not root or using sudo
# python migrate.py --config=odoo-server.conf --database=bes --run-migrations=10.0,11.0

Migrate output:
---Start---
python migrate.py --config=odoo-server.conf --database=bes --run-migrations=10.0,11.0
linking server/addons to /var/tmp/openupgrade/10.0/addons
getting git://github.com/OpenUpgrade/OpenUpgrade.git
Cloning into '/var/tmp/openupgrade/10.0/server'...
remote: Counting objects: 24236, done.
remote: Compressing objects: 100% (19609/19609), done.
remote: Total 24236 (delta 7736), reused 9786 (delta 3704), pack-reused 0
Receiving objects: 100% (24236/24236), 110.96 MiB | 689.00 KiB/s, done.
Resolving deltas: 100% (7736/7736), done.
Checking connectivity... done.
Checking out files: 100% (21672/21672), done.
linking server/addons to /var/tmp/openupgrade/11.0/addons
getting git://github.com/OpenUpgrade/OpenUpgrade.git
Cloning into '/var/tmp/openupgrade/11.0/server'...
remote: Counting objects: 25432, done.
remote: Compressing objects: 100% (20638/20638), done.
remote: Total 25432 (delta 7904), reused 10351 (delta 3820), pack-reused 0
Receiving objects: 100% (25432/25432), 119.52 MiB | 655.00 KiB/s, done.
Resolving deltas: 100% (7904/7904), done.
Checking connectivity... done.
Checking out files: 100% (22678/22678), done.
From https://github.com/OCA/openupgradelib
* branch master -> FETCH_HEAD
Already up-to-date.
copying database bes to mydb_migrated...
Copying the database using 'with template'
running migration for 10.0
running migration for 11.0
---End---

6. Restore mydb_migrated to odoo 11 environment

7. See migration log for errors: $ nano /var/tmp/openupgrade/migration.log

See here, https://doc.therp.nl/openupgrade/
Hope it helps,


Terry

3 Comments

  1. Jörgq January 14, 2019 Reply
    • taf January 15, 2019 Reply
      • Jörg January 15, 2019 Reply

Leave a Reply