Skip to content

Potential lost data on account payment order migration #1363

@lorenzoallegrucci

Description

@lorenzoallegrucci

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, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions