Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] hr_expense: Update payment states after moves updated
Issue - Configure bank journal to post at bank reconciliation - Create 2 expenses paid by company - Create a report for the two expenses (make sure bank journal configured in the first step is used) - Submit, approve and post journal entries Error message : "You cannot modify a journal entry linked to a posted payment." Cause Since the payment state of expenses lines is updated one by one in related move, the first expense had already a 'posted' state when updating second expense line, who go against _validate_move_modification validation. Solution Update payments state only after updating all moves lines. opw-2275686 closes odoo#53080 Signed-off-by: Simon Goffin (sig) <[email protected]>
- Loading branch information