Files
Wiki/OpenUpgrade.md
T
2021-08-16 21:40:26 +02:00

1.8 KiB

OpenUpgrade

Website:https://oca.github.io/OpenUpgrade/

A step by step guide to upgrade an Odoo Community Edition using Odoo Development.

Upgrade from 13.0 to 14.0

  • Define settings
DATABASE=mint-system
FROM=13.0
TARGET=14.0
  • Start local development environment
task checkout $FROM

# with docker
task start

# or native
task start db
task start native
  • Clear the local filestore and database
# with docker
docker-odoo-drop $DATABASE

# or native
task drop-db $DATABASE
task clear-filestore $DATABASE
  • Export remote database to local folder and restore it
odoo-backup ...

# with docker
docker-odoo-restore ...

# or native
odoo-restore ...
  • Install openupgrade scripts
# with docker
docker-odoo-install -d $DATABASE -m openupgrade_scripts

# or native
task install-module $DATABASE openupgrade_scripts
  • Stop the server, checkout target and run the openupgrade scripts
task checkout $TARGET
git clone git@github.com:OCA/OpenUpgrade.git oca/openupgrade
cd oca/openupgrade && git checkout $TARGET && ../..
echo "\noca/openupgrade" >> config/addons_path
task update-config

# WIP: with docker
docker exec odoo odoo-bin -d $DATABASE --config /etc/odoo/odoo.conf --update=all --stop-after-init --load=base,web,openupgrade_framework

# or native
source venv$TARGET/bin/activate
./odoo/odoo-bin -d $DATABASE --config config/odoo-native.conf --update=all --stop-after-init --load=base,web,openupgrade_framework 
  • Remove unsupported modules
# WIP: with docker

# or native
task remove-module $DATABASE web_diagram
  • Remove unsupported views
task start-shell $DATABASE

See Odoo Shell Scripts.

  • Clear assets and restart server
# WIP: with docker

# or native
task clear-assets $DATABASE
task start native