2026-02-15 01:07:25 -05:00
|
|
|
|
2021-07-21 04:31:35 -04:00
|
|
|
# Migration
|
|
|
|
|
|
|
|
|
|
Guide to help migration with different version.
|
|
|
|
|
|
|
|
|
|
## Docker
|
|
|
|
|
|
|
|
|
|
- Clone project if only download docker-compose
|
|
|
|
|
- `git init`
|
|
|
|
|
- `git remote add origin https://github.com/erplibre/erplibre`
|
|
|
|
|
- `git fetch`
|
|
|
|
|
- `mv ./docker-compose.yml /tmp/temp_docker-compose.yml`
|
|
|
|
|
- `git checkout master`
|
|
|
|
|
- `mv /tmp/temp_docker-compose.yml ./docker-compose.yml`
|
|
|
|
|
- Do manually a backup of ERPLibre database (TODO implement makefile command)
|
|
|
|
|
- Update `./docker-compose.yml` depending 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
|
|
|
|
|
|
2022-03-03 14:35:23 -05:00
|
|
|
TODO not working automatically, check last procedure and do it manually. The command to the docker is missing support
|
|
|
|
|
when database is external.
|
2021-07-21 04:31:35 -04:00
|
|
|
|
|
|
|
|
Easy way, do a backup with ERPLibre, upgrade Postgresql, restore the same backup.
|
|
|
|
|
|
|
|
|
|
List all database :
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make docker_show_databases
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Vanilla
|
|
|
|
|
|
|
|
|
|
- Run script `make install_dev`
|
|
|
|
|
- Restart your daemon
|
|
|
|
|
- Regenerate master password manually
|
2023-08-21 17:36:03 -04:00
|
|
|
|
|
|
|
|
## Migration Odoo 12 to Odoo 13
|
|
|
|
|
|
|
|
|
|
Replace BD to your database name.
|
|
|
|
|
|
|
|
|
|
First, be sure all addons is updated with script.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./script/addons/update_addons_all.sh BD
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Execute migration with OpenUpgrade.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make config_gen_migration
|
2025-05-05 04:43:13 -04:00
|
|
|
./.venv.erplibre/bin/python ./script/OCA_OpenUpgrade/odoo-bin -c ./config.conf --no-http --update all --stop-after-init -d BD
|
2023-08-21 17:36:03 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Migration Odoo 13 to Odoo 14
|
|
|
|
|
|
|
|
|
|
Replace BD to your database name.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
make config_gen_migration
|
2024-12-02 05:27:57 -05:00
|
|
|
./run.sh --upgrade-path=./script/OCA_OpenUpgrade/openupgrade_scripts/scripts --update all --no-http --stop-after-init --load=base,web,openupgrade_framework -d BD
|
2026-02-15 01:07:25 -05:00
|
|
|
```
|