Wednesday, June 20, 2018
1 change · master
Resolved issues and error corrections
This fix makes Odoo calculate default debit and credit amounts using all related journal entry lines instead of relying on a single hardcoded line. This helps avoid incorrect accounting defaults when entries contain multiple lines, improving reliability for finance workflows.
Original PR description
Description of the issue/feature this PR addresses: The default get does not support multiple account_move_line's calculated debit/credit. Current behavior before PR: The move line's debit and credit are calculated from a hardcoded counterpart. (line[2]). Desired behavior after PR is merged: Return a calculated debit/credit from all move lines related to the move. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr