You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Between version 14 and 15 the journal_id value became a computed field updated via account.payment.method.line objects. Currently this is not correctly migrated as the Payment Journal for the payment provider we installed it is empty after migration.
There is a migration for this in post-migration.py for the payment module but it doesn't do anything. Since the updated account.payment.method are created in the provider modules this migration runs before the required values are exists in the database. Current migration for reference post-migration.
I propose to move this migration step to a end-migration.py so that all values exists before it runs.
To Reproduce
Affected versions: 15
Steps to reproduce the behavior:
Create a new database with payment and one of the included payment provider. (I've used payment_adyen)
Run migration for v14 -> 15
Expected behavior
If we open the payment acquirer and look at the Payment Journal it should be set to the payment journal created by the payment provider we installed.
Additional context
The text was updated successfully, but these errors were encountered:
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.
Module
payment
Describe the bug
Between version 14 and 15 the
journal_id
value became a computed field updated viaaccount.payment.method.line
objects. Currently this is not correctly migrated as the Payment Journal for the payment provider we installed it is empty after migration.There is a migration for this in
post-migration.py
for thepayment
module but it doesn't do anything. Since the updatedaccount.payment.method
are created in the provider modules this migration runs before the required values are exists in the database. Current migration for reference post-migration.I propose to move this migration step to a
end-migration.py
so that all values exists before it runs.To Reproduce
Affected versions: 15
Steps to reproduce the behavior:
Expected behavior
If we open the payment acquirer and look at the Payment Journal it should be set to the payment journal created by the payment provider we installed.
Additional context
The text was updated successfully, but these errors were encountered: