Skip to content
Snippets Groups Projects
Commit ebb25220 authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo)
Browse files

[FIX] account: fix auto-reconciliation with multiple currencies


- Create a Bank journal [BNK2] with foreign currency
- Create a reconciliation model:
  * Type: Rule to suggest counterpart entry
  * Amount Type: Paid/Received
  * Auto-validate: True
  * Journals: [BNK2]
  * Label: Contains [Test]
  * Partner Is Set: False
  * Counterpart Entries:
    - Account: select an expense account
    - Amount Type: Percentage of statement line
    - Amount: 100
    - Taxes: add the 15% purchase tax
    - Tax Included in Price: True
- create a bank statement on [BNK2] with reference [Test]
- post that statement and reconcile it

Look at the resulting journal entries.
The tax amount is incorrect, and we will have an open balance.

This occurs after bc0bfde1
In version 14 counterpart amounts are by default in company currency so
we should force the currency after retrieving writeoff vals

opw-3068801

closes odoo/odoo#108487

Signed-off-by: default avatarLaurent Smet <las@odoo.com>
parent 4aeed49d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment