Skip to content

Commit

Permalink
sf_spt_force_package fix restriction value
Browse files Browse the repository at this point in the history
The default value has changed in the the related module.
It is a null value now.
  • Loading branch information
TDu committed Oct 5, 2023
1 parent 4aa2cf4 commit 572a4ef
Showing 1 changed file with 1 addition and 4 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

0 comments on commit 572a4ef

Please sign in to comment.