Skip to content

Commit 3f43d4d

Browse files
[FIX] account_reconcile_oca: force update of data in posted journal entry
1 parent 3db89df commit 3f43d4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

account_reconcile_oca/models/account_bank_statement_line.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,9 @@ def _synchronize_to_moves(self, changed_fields):
10291029
st_line_vals = {"line_ids": line_ids_commands}
10301030
if st_line.move_id.partner_id != st_line.partner_id:
10311031
st_line_vals["partner_id"] = st_line.partner_id.id
1032-
st_line.move_id.write(st_line_vals)
1032+
st_line.move_id.with_context(skip_readonly_check=True).write(
1033+
st_line_vals
1034+
)
10331035
else:
10341036
super()._synchronize_to_moves(changed_fields=changed_fields)
10351037

0 commit comments

Comments
 (0)