-
Notifications
You must be signed in to change notification settings - Fork 28.1k
[FIX] account: fallback to correct move link in bank matching #207968
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
Conversation
19bc91b
to
6459ca4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thankssss for the pr
6459ca4
to
e7e0176
Compare
e7e0176
to
7ac1d2b
Compare
34f0b7d
to
734e928
Compare
When reconciling an invoice and payment in foreign currency on different dates, an exchange rate difference line is added. This results in more than one value in `reconciled_lines_ids`, and `moveData()` no longer resolves a link to the move, so the bank statement is shown instead. This commit introduces a non-stored computed field to filter out exchange difference lines from `reconciled_lines_ids`. The kanban now uses this filtered field as a fallback when the reconciled lines are ambiguous. Steps to reproduce: 1. Enable a foreign currency and create two rates on different dates. 2. Create an invoice on one of the dates and a transaction to pay it on the other. 3. Reconcile them. task-4749264
734e928
to
ff7bcf1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanksss
Upgrade exception #573 added. Waiting the forward-port of this PR, the exception will be applied on all builds, and create an inconsistent state for migrations. Important Please forward port this PR ASAP up to master without change, preferably before the end of the week. PRs adding fields/models should be merged at the beginning of the week and all the forward ports should be merged in the same week. If you need to apply any change before it reaches master, please notify runbot team. Details:
|
@robodoo r+ |
@malb-odoo you may want to rebuild or fix this PR as it has failed CI. |
When reconciling an invoice and payment in foreign currency on different dates, an exchange rate difference line is added. This results in more than one value in `reconciled_lines_ids`, and `moveData()` no longer resolves a link to the move, so the bank statement is shown instead. This commit introduces a non-stored computed field to filter out exchange difference lines from `reconciled_lines_ids`. The kanban now uses this filtered field as a fallback when the reconciled lines are ambiguous. Steps to reproduce: 1. Enable a foreign currency and create two rates on different dates. 2. Create an invoice on one of the dates and a transaction to pay it on the other. 3. Reconcile them. task-4749264 closes #207968 Related: odoo/enterprise#84424 Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
When reconciling an invoice and payment in foreign currency on different dates, an exchange rate difference line is added. This results in more than one value in
reconciled_lines_ids
, andmoveData()
no longer resolves a link to the move, so the bank statement is shown instead.This commit introduces a non-stored computed field to filter out exchange difference lines from
reconciled_lines_ids
. The kanban now uses this filtered field as a fallback when the reconciled lines are ambiguous.Steps to reproduce:
task-4749264