8be0caa474b6c05487b7c8de12fa7894c4aa9632
Two engine bugs caught by Task 19's integration tests: 1. Partial reconcile (bank_amount < invoice_residual) was creating an unbalanced bank move. Counterpart balance now clamped to min(remaining_bank_amount, abs(invoice_residual)) so the move stays balanced; Odoo's reconcile() handles the resulting partial. The counterpart's amount_currency is scaled proportionally so multi- currency lines stay consistent. 2. Unreconcile only removed account.partial.reconcile rows but didn't restore the suspense line on the bank move, leaving is_reconciled=True after unreconcile. Now delegates to V19's standard account.bank.statement.line.action_undo_reconciliation for any affected bank line, which both deletes partials and restores the suspense state in one shot. Made-with: Cursor
Description
Odoo 19 custom modules
Languages
Python
55.9%
HTML
26.1%
JavaScript
14.9%
SCSS
1.8%
CSS
0.8%
Other
0.4%