Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][IMP] shopfloor: change_package_lot action, add after assign hook #945

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading