onesteinbv / addons-onestein

Odoo modules developed by Onestein
https://www.onestein.nl/
GNU Affero General Public License v3.0
59 stars 102 forks source link

[FIX] reconciliation reconciles wrong things with same account #79

Closed hbrunn closed 5 years ago

hbrunn commented 5 years ago

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.

astirpe commented 5 years ago

Thanks!