8000 [FW][FIX] account: fallback to correct move link in bank matching by fw-bot · Pull Request #210492 · odoo/odoo · GitHub
[go: up one dir, main page]

Skip to content

[FW][FIX] account: fallback to correct move link in bank matching #210492

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

fw-bot
Copy link
Contributor
@fw-bot fw-bot commented May 17, 2025

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

Forward-Port-Of: #207968

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

X-original-commit: 4147760
@robodoo
Copy link
Contributor
robodoo commented May 17, 2025

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label May 17, 2025
@fw-bot
Copy link
Contributor Author
fw-bot commented May 17, 2025

@alialfie @malb-odoo this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@C3POdoo C3POdoo added the RD research & development, internal work label May 17, 2025
@malb-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request May 17, 2025
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 #210492

X-original-commit: 4147760
Related: odoo/enterprise#85819
Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
@robodoo robodoo added the 18.4 label May 17, 2025
@robodoo robodoo closed this May 17, 2025
AhmedElemary57 pushed a commit to odoo-dev/odoo that referenced this pull request May 18, 2025
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 odoo#210492

X-original-commit: 4147760
Related: odoo/enterprise#85819
Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
@fw-bot fw-bot deleted the master-saas-18.3-bank_rec_xch_diff-alal-432735-fw branch May 24, 2025 20:38
fdardenne pushed a commit to odoo-dev/odoo that referenced this pull request May 26, 2025
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 odoo#210492

X-original-commit: 4147760
Related: odoo/enterprise#85819
Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
18.4 forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0