Skip to content

Commit

Permalink
[FIX] account_reconcile_oca: force update of data in posted journal e…
Browse files Browse the repository at this point in the history
…ntry
  • Loading branch information
JordiBForgeFlow committed Feb 25, 2025
1 parent edd06e7 commit f81e2e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion account_reconcile_oca/models/account_bank_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,9 @@ def _synchronize_to_moves(self, changed_fields):
st_line_vals = {"line_ids": line_ids_commands}
if st_line.move_id.partner_id != st_line.partner_id:
st_line_vals["partner_id"] = st_line.partner_id.id
st_line.move_id.write(st_line_vals)
st_line.move_id.with_context(skip_readonly_check=True).write(
st_line_vals
)
else:
super()._synchronize_to_moves(changed_fields=changed_fields)

Expand Down

0 comments on commit f81e2e5

Please sign in to comment.