-
-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Procurement pre-migration fails when stock is not installed. #191
Comments
BTW, Why does the procurement pre-migration is ran if it's not installed in my DB. Is this normal? |
Well, I took a peek in the loading.py module to see why and now I know:
Procurement, which is auto-installabled, now depends solely on base and product, and since their both installed, it is automatically marked to be installed. I removed the 8.0-procurement-fixes branch for the moment till I know for sure how to deal with this. |
Strange thing is, that the migrate decorator from openerp/openupgrade/openupgrade.py checks for version and does not run the migration if it is not set. That should be the case for a new installation. Can you check what it gets at that point? |
Hi @StefanRijnhart, I see no check about this in the decorator. Currently the migrate decorator simply calls the decorated function. No questions asked. |
I have reworked the branch which moves this past this issue: https://github.com/mvaled/OpenUpgrade/tree/8.0-procurement-fixes |
Opps. I didn't get you exactly. It checks the version, not the state.... Let's try to inspect this. |
Well, now it simply does not get executed: version is None. It seems I did something I can't recall now that let the DB in an unstable state. Closing this now. |
Thanks for the follow-up! |
Signed-off-by pedrobaeza
State of the DB:
This is: Neither procurement nor stock are installed.
When running the migration with OpenUpgrade, it fails with:
The text was updated successfully, but these errors were encountered: