Comments (8)
BTW, Why does the procurement pre-migration is ran if it's not installed in my DB. Is this normal?
from openupgrade.
Well, I took a peek in the loading.py module to see why and now I know:
$ psql -d mercurio8 -c "SELECT name, state FROM ir_module_module WHERE state!='uninstalled'" | grep "\(pro\|sto\)"
project | to upgrade
procurement | to install
project_issue | to upgrade
product | installed
process | to upgrade
crm_profiling | to upgrade
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.
from openupgrade.
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?
from openupgrade.
Hi @StefanRijnhart,
I see no check about this in the decorator. Currently the migrate decorator simply calls the decorated function. No questions asked.
from openupgrade.
I have reworked the branch which moves this past this issue: https://github.com/mvaled/OpenUpgrade/tree/8.0-procurement-fixes
from openupgrade.
Opps. I didn't get you exactly. It checks the version, not the state.... Let's try to inspect this.
from openupgrade.
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.
from openupgrade.
Thanks for the follow-up!
from openupgrade.
Related Issues (20)
- account.payment.method.line not connecting when migrating from 14 -> 15 HOT 3
- [16.0]Website Migration, in multilingual custom views
- [15.0] website: Contact Us web page failing to migrate HOT 1
- [16.0][account] minor: aml quantity should be False instead of 1.0 for tax lines and payment term lines in v16 HOT 13
- [16.0] mail: Delete incorrect rows before applying unique constraint HOT 1
- [16.0][account] Missing field and field information for account HOT 20
- Links to documentation on Readme are giving 404 HOT 1
- Migration continue don't run migration scripts HOT 5
- [14.0 -> 16.0] SQL views removed in Odoo HOT 6
- [v15 -> v16 Openupgrade] res_partner_views: Inherited view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition
- [14.0] update all multi-company security rules HOT 6
- [12.0] violates not-null constraint decimal.precision HOT 4
- [13.0] wrong rename for account.move.reverse_entry_id HOT 1
- [12] Update 12 to 13 HOT 7
- Is there any config in openupgrade to disable oca install dependency? HOT 4
- [11→12]: psycopg2.ProgrammingError: can't adapt type 'res.company' [stock] HOT 4
- [15→16] sale_purchase: AttributeError: 'ir.model.constraint' object has no attribute '_module_data_uninstall' HOT 2
- [11->12] payment_icons in inherited website model of module website_payment from v11 is unavailable in v12, but used in footer template view HOT 1
- i cannot access to accounting HOT 1
- I am trying to update Odoo bitnami 15.0 and it isn't working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openupgrade.