Skip to content

Potential lost data on account payment order migration #1363

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

Open
2 tasks
lorenzoallegrucci opened this issue Oct 1, 2024 · 3 comments
Open
2 tasks

Potential lost data on account payment order migration #1363

lorenzoallegrucci opened this issue Oct 1, 2024 · 3 comments
Labels

Comments

@lorenzoallegrucci
Copy link

Module

account_payment_order

Describe the bug

After this commit 4c9020f
account_payment records are not created due for account payment state not in ('uploaded', 'done') loosing data!!

The same problem is on 14->15 migration:
https://github.com/OCA/bank-payment/blob/15.0/account_payment_order/migrations/15.0.2.0.0/post-migration.py#L35

To Reproduce

Affected versions:

  • 14.0
  • 15.0

Steps to reproduce the behavior:

  1. migrate from <= 13.0 to >= 14.0

Expected behavior
not loosing data

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

@lorenzoallegrucci
Copy link
Author

@etobella can you explain better this critical commit 4c9020f ?
Thank you

Copy link

github-actions bot commented Apr 6, 2025

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 6, 2025
@etobella
Copy link
Member

etobella commented Apr 6, 2025

The system was duplicating the moves if you had the no_generate_payment marked.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants