Tuesday, August 23, 2022
2 changes
Resolved issues and error corrections
Bank reconciliation now correctly applies payment tolerance rules when matching slightly different invoice and statement amounts. This prevents the full amount from being incorrectly treated as a write-off, improving accounting accuracy for small payment differences.
Original PR description
…ing payment tolerance - Create a reco model with a payment tolerance of 2% - Create an invoice of 1000 - Create a statement line of 998 => The whole amount is in write-off Explanation: The first issue is the matched aml is mounted inside the widget using 'allow_partial'. So, the mounted line is a partial of 998 / 1000 instead of the full amount. The second issue is '_action_select_reconcile_model' is removing all the lines linked to a reconcile model instead of removing only the ones having a different reconcile model. So, the previously mounted line is removed and then, the write-off is generated for the whole amount. task: 2929017
This fixes an issue where uploaded documents could miss or ignore related details such as owner, customer, or linked record because those values were sent in the wrong format. Document uploads now apply the intended context correctly, improving reliability for users organizing files.
Original PR description
The upload_attachment route does not expect `default_x` keys but directly `x` for owner_id, partner_id, res_id and res_model. However they were passed as `default_x` since the owl refactor. This commit fixes behaviour.