diff options
| author | Thibault Francois <tfr@openerp.com> | 2020-03-04 10:45:12 +0000 |
|---|---|---|
| committer | Thibault Francois <tfr@openerp.com> | 2020-03-04 14:56:10 +0000 |
| commit | 92bd23746b2e3fe5a7b7e5dd0b5ed0061d58fcd8 (patch) | |
| tree | ee16dc17bacdf5050e497ae0e9805723db20afd7 /addons/web/static/src/js/fields/relational_fields.js | |
| parent | 6282e4546256278750df39fe39b83e74b504cbc5 (diff) | |
[FIX] account: allow to reconcile batch payment
For the moment it's not possible to reconcile batch payment in multicurrency set up
because the reconciliation trigger _compute_amount for all entry
recompute_amout trigger _inverse_amount_total that will
write on protected field such as debit, credit
1° when the currency is not same as company currency because the
convertion was done from currency_id to currency_id and not currency_id
to company_currency_id
2° even when the correction is correct you may have data that lead to
different rate at the computation then when the move was originially
computed
3° when you have float representation issue because != is use to
compare float
Solution:
Fix _inverse_amount_total
In Trigger the compute_amount only for invoice
and since the method _inverse_amount_total try to change the amount
only for entry with 2 lines the method will be never trigger during
reconcilation.
closes odoo/odoo#46886
X-original-commit: 5bd659fb16a44d1bc593cf932445e2cc628e12a8
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions
