In the specific case in which an invoice in company currency is paid by a payment in foreign currency, in that case, perform the reconciliation in foreign currency but convert the residual amount of the invoice to the foreign currency using the payment rate instead of the invoice one. closes odoo/odoo#138289 X-original-commit: 2123278215befe22d3be4568812bfe7d028e2757 Related: odoo/enterprise#48744 Signed-off-by: John Laterre (jol) <jol@odoo.com> Signed-off-by: Laurent Smet (las) <las@odoo.com>