diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-06-13 17:11:56 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-06-13 17:20:48 +0200 |
| commit | 3b4560cf4270ca21189d40e639f78091ca2d5219 (patch) | |
| tree | d593954581552f52fc1d99a6e9fcdfb03714e0a4 /addons/link_tracker/models/link_tracker.py | |
| parent | ec005af5b9fb6951cd2d90b6d02f3689db2f28c1 (diff) | |
[FIX] account: multiple journal items to fix in full batch reconciling
In a batch reconciliation of journal items,
it could happen that multiple journal items
in a foreign currency required the creation
of an exchange entry
`aml_to_balance_currency |= aml`
But the statement `aml.matched_debit_ids[0] or aml.matched_credit_ids[0]`
requires a single browse record (singleton) to work
The partial reconciliation is supposed to be the same for all
the journal items to fix, we can therefore safely do
`aml = aml_to_balance_currency[0]` to overcome this issue.
In addition, in this condition, the full reconcile must be
skipped to avoid passing multiple times in the `create_exchange_rate_entry`
method (which is called in the method `create` of `account.partial.reconcile`
This has been reviewed by qdp.
opw-680044
Diffstat (limited to 'addons/link_tracker/models/link_tracker.py')
0 files changed, 0 insertions, 0 deletions
