Skip to content

Commit

Permalink
shopfloor: change_package_lot action, add after assign hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sebalix committed Nov 14, 2024
1 parent 0b48b75 commit 28d4a01
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion shopfloor/actions/change_package_lot.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ def is_lesser(value, other, rounding):
# Find other available goods for the lines which were using the
# lot before...
to_assign_moves._action_assign()
self._change_pack_lot_change_lot__after_assign(
previous_lot, lot, to_assign_moves
)

message = self.msg_store.lot_replaced_by_lot(previous_lot, lot)
if message_parts:
Expand All @@ -176,7 +179,12 @@ def is_lesser(value, other, rounding):
def _change_pack_lot_change_lot__before_assign(
self, previous_lot, lot, to_assign_moves
):
pass
"""Hook to override."""

def _change_pack_lot_change_lot__after_assign(
self, previous_lot, lot, to_assign_moves
):
"""Hook to override."""

def _package_content_replacement_allowed(self, package, move_line):
# we can't replace by a package which doesn't contain the product...
Expand Down

0 comments on commit 28d4a01

Please sign in to comment.