[18.0][OU-FIX] account: correct payment state for migrated payments#5767
[18.0][OU-FIX] account: correct payment state for migrated payments#5767akashr355 wants to merge 5 commits into
Conversation
[MIG] account: recompute payment states post-migration During the 18.0 migration, `fill_account_payment` maps all <=17 payments to 'in_process' because a payment's own journal entry defaults to `payment_state = 'not_paid'`. Consequently, fully settled payments fail to migrate to the 'paid' state. This introduces a post-migration script to re-trigger `_compute_state()` for in-process payments. This ensures fully reconciled payments are promoted to 'paid', accurately reflecting their true status.
pedrobaeza
left a comment
There was a problem hiding this comment.
This is not happening in my migrated instances, so something on your side (maybe a module like account_in_payment installed) is different, so you should fix it in that part, not here.
|
|
Please fix pre-commit. |
Test added please review. |
pre-commit fixed. |
[MIG] account: recompute payment states post-migration
During the 18.0 migration,
fill_account_paymentmaps all <=17 payments to 'in_process' because a payment's own journal entry defaults topayment_state = 'not_paid'. Consequently, fully settled payments fail to migrate to the 'paid' state.This introduces a post-migration script to re-trigger
_compute_state()for in-process payments. This ensures fully reconciled payments are promoted to 'paid', accurately reflecting their true status.