Skip to content

Commit

Permalink
Merge PR #765 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Oct 13, 2023
2 parents 2204a8d + 63b0f00 commit 81de96b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ class ShopfloorSingleProductTransfer(Component):
def _set_quantity__check_location(self, move_line, location, confirmation=False):
# We add an additional check to verify if the location requires packages
# and return a message to the user accordingly.
if (
location.package_restriction != "norestriction"
and not move_line.result_package_id
):
if location.package_restriction and not move_line.result_package_id:
message = self.msg_store.location_requires_package()
return self._response_for_set_quantity(
move_line, message=message, asking_confirmation=None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_force_package_mandatory_with_package(self):
def test_force_package_not_mandatory(self):
picking = self._setup_picking()
move_line = picking.move_line_ids
self.dispatch_location.sudo().package_restriction = "norestriction"
self.dispatch_location.sudo().package_restriction = ""
response = self.service.dispatch(
"set_quantity",
params={
Expand Down

0 comments on commit 81de96b

Please sign in to comment.