Can't book statement line if payment made in forein currency (tryton 6.6)

Since a migration from 6.2 to 6.6 I can no more book a statement line related to a payment made in a forein currency.

Can you explain why you can not?


1- I’ve a invoice in USD, that I pay from Lines to Pay wizard
2- In the payments lines there is a payment with a succeded status
3- I want to add a statement line related to the payment I made in forein currency
4- The search windows shows nothing (empty liste)

It seems that from a statement line I can only select payments in the compagny curreny


The statement must be in the same currency as the payment to be linked.

It was not the case in tryton previous version (6.2 and older)
Since a a rate is applied when the payment is made, in the statement line we relate the paiement with the amount converted to the compagny currency.

It was a bug that has been fixed Enforce domain for searching payment and group from statement line (#11170) · Issues · Tryton / Tryton · GitLab

If you made the paiement in foreign currency, your statement should be in foreign currency.