OpenUpgrade mailing list archives
openupgrade@odoo-community.org
Browse archives
[11 - 12]Migration of Odoo Asset Management to OCA Asset Management fails completely
by
Twanda AG, Ermin Trevisan
Hi all
As referred by Pedro Baeza from the end of this thread: https://github.com/OCA/OpenUpgrade/issues/2159 I want to ask the community for help in this case, as I'm not a developer.
At https://github.com/OCA/account-financial-tools/blob/418a0ddfaeefe0efaf6d18b6d8b175a0cd1f82d8/account_asset_management/migrations/12.0.1.0.0/pre-migration.py#L82 I would like to have a loud warning in the Odoo log that says that the migration will not work because the table "account_asset" already exists in the database. It is recommended to remove the table from the database and to restart the migration.
In addition I'm wondering why this could happen at all, as it is not possible to install both asset management modules at the same time. The customer database I wanted to migrate did not have the table "account_asset" in the database. Therefore somehow this table got created during the OpenUpgrade process before the pre-migration script was executed.
This was my migration process:
- I have set up a migration server for 12.0 with the newest openupgradelib and a source install by
sudo git clone --depth 1 --branch 12.0 https://github.com/OCA/OpenUpgrade $OE_HOME_EXT/
- I have started Odoo from command line without any extra parameters just to get to the database manager GUI to restore the 11.0 database to migrate.
- After the restore, I have stopped Odoo and have restarted it with the parameter -u all in order to start the migration.
Is this correct and/or recommended or how do you do it?
Thanks for any feedback, trevi
--
twanda AG
Ermin Trevisan
Artherstrasse 19
CH-6318 Walchwil
T: +41 41 758 1515
M: +41 79 208 7373
Follow-Ups
-
Re: [11 - 12]Migration of Odoo Asset Management to OCA Asset Management fails completely
byTwanda AG, Ermin Trevisan -
Re: [11 - 12]Migration of Odoo Asset Management to OCA Asset Management fails completely
byTwanda AG, Ermin Trevisan -
Re: [11 - 12]Migration of Odoo Asset Management to OCA Asset Management fails completely
byTecnativa. S. L., Pedro M. Baeza