Skip to content

Commit

Permalink
[FIX] l10n_it_withholding_tax: force delete to unlink already posted …
Browse files Browse the repository at this point in the history
…moves
  • Loading branch information
GSLabIt committed Sep 5, 2024
1 parent 4c19d38 commit 68a621d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_it_withholding_tax/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def remove_move_reconcile(self):
# Delete wt move
for wt_move in wt_mls.mapped("move_id"):
wt_move.button_draft()
wt_move.unlink()
wt_move.with_context(force_delete=True).unlink()

Check warning on line 540 in l10n_it_withholding_tax/models/account.py

View check run for this annotation

Codecov / codecov/patch

l10n_it_withholding_tax/models/account.py#L540

Added line #L540 was not covered by tests

return super(AccountMoveLine, self).remove_move_reconcile()

Expand Down

0 comments on commit 68a621d

Please sign in to comment.