Comments (3)
Hi, Henrik, are you sure that's the problem? The SQL should match all the existing payment providers, no matter if later the code is changed.
from openupgrade.
Well what we are matching here is not the provider. The connection is payment.acquirer
-> account.payment.method
-> account.payment.method.line
-> account.journal
. In version 14 the account.payment.method.line
is not there and the account.payment.method
is only created by the system.
In version 15 each provider creates a new account.payment.method
via the XML. Then in the migration we find all account.payment.method
that matches the payment.acquirer
and that matches the account.journal
. So without the account.payment.method
the connection can never be done by the migration as this point.
So at the point that the migration runs it will not find the newly created account.payment.method
.
from openupgrade.
OK, please do a PR moving the method to end-migration. Add in the docstring of the method the explanation why it should be there.
from openupgrade.
Related Issues (20)
- 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
- [13 -> 14] Migration Error
- Unable Upgrade: How to upgrade from Odoo 16 to Odoo 17 ? HOT 2
- [14.0][account] ERROR: column "account_reconcile_model_line_id" referenced in foreign key constraint does not exist HOT 1
- [16.0] After DB migration account resequence failing HOT 1
- [IMP] openupgrade_framework: Do remove the ir.model.fields entries HOT 15
- Unescaped parameters in website 15.0 post-migration script HOT 2
- Migration to version 18.0
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.