when we spread over the same account, we'll get a partial reconciliation with all lines, which we don't want to have. What we want is to reconcile the invoice line's move line with one of the credit/debit move lines depending of the type of invoice.
The changes in the test are because they're wrong: They test the wrong thing, and only work because the USD currency on a EUR company will cause _find_move_line to find nothing (credit/debit is in EUR), which has caused a full reconciliation on the credit+debit move lines.
when we spread over the same account, we'll get a partial reconciliation with all lines, which we don't want to have. What we want is to reconcile the invoice line's move line with one of the credit/debit move lines depending of the type of invoice.
The changes in the test are because they're wrong: They test the wrong thing, and only work because the USD currency on a EUR company will cause
_find_move_line
to find nothing (credit/debit is in EUR), which has caused a full reconciliation on the credit+debit move lines.