- erplibre separate venv erplibre and odoo - rename python-version to python-odoo-version - add conf/python-erplibre-version - rename .venv to .venv.erplibre - move .venv/repo to .venv.erplibre/bin/repo - install pyenv into .venv.erplibre - install poetry into .venv.odooVERSION - first installation show odoo version to install - can install erplibre without odoo - update README.md information about installation with TODO - change image from github to locally - remove link creation .venv - update version: remove code to force create symbolic link .venv - use dynamic merge manifest, will be able to merge different odoo version - can add dev tools - default manifest is empty to remove conflict
1.8 KiB
1.8 KiB
Migration
Guide to help migration with different version.
Docker
- Clone project if only download docker-compose
git initgit remote add origin https://github.com/erplibre/erplibregit fetchmv ./docker-compose.yml /tmp/temp_docker-compose.ymlgit checkout mastermv /tmp/temp_docker-compose.yml ./docker-compose.yml
- Do manually a backup of ERPLibre database (TODO implement makefile command)
- Update
./docker-compose.ymldepending of difference with git. - Run script
make docker_exec_erplibre_gen_config - Stop the docker
make docker_stop - Delete the volume,
docker volume rm ${BASENAME}_erplibre-db-data - Start the docker
make docker_run_daemon - Restore the backup manually.
Database migration, PostgreSQL update 11 to 12
TODO not working automatically, check last procedure and do it manually. The command to the docker is missing support when database is external.
Easy way, do a backup with ERPLibre, upgrade Postgresql, restore the same backup.
List all database :
make docker_show_databases
Vanilla
- Run script
make install_dev - Restart your daemon
- Regenerate master password manually
Migration Odoo 12 to Odoo 13
Replace BD to your database name.
First, be sure all addons is updated with script.
./script/addons/update_addons_all.sh BD
Execute migration with OpenUpgrade.
make config_gen_migration
./.venv.erplibre/bin/python ./script/OCA_OpenUpgrade/odoo-bin -c ./config.conf --no-http --update all --stop-after-init -d BD
Migration Odoo 13 to Odoo 14
Replace BD to your database name.
make config_gen_migration
./run.sh --upgrade-path=./script/OCA_OpenUpgrade/openupgrade_scripts/scripts --update all --no-http --stop-after-init --load=base,web,openupgrade_framework -d BD