Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelTorrecillas committed Jan 17, 2025
1 parent 426c9db commit 3625aff
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ def _free_reservation(*args, **kwargs):
res = wrapped(*args, **kwargs)
move_to_reassign_ids.update(move_recomputed_state_ids)
return res

self.patch(type(self.env["stock.move.line"]),
"_free_reservation", _free_reservation
)


@contextmanager
def _get_move_recomputed_state_ids(self):
"""A context manager method to collect the move where the state has been
Expand All @@ -45,5 +41,3 @@ def _get_move_recomputed_state_ids(self):
def _recompute_state(self):
move_to_reassign_ids.update(self.ids)
wrapped(self)

self.patch(type(self.env["stock.move"]),"_recompute_state", _recompute_state)

0 comments on commit 3625aff

Please sign in to comment.