Skip to content

Commit

Permalink
[FIX] purchase_delivery_split_date: prevent error when adding a
Browse files Browse the repository at this point in the history
purchase order line on a different delivery date on confirmed POs
For example: use the purchase request module to add a new line on
an existing PO
  • Loading branch information
AaronHForgeFlow committed Jan 17, 2025
1 parent b292a87 commit c0984b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion purchase_delivery_split_date/models/purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _check_split_pickings(self):
continue
if (
move.picking_id.scheduled_date.date() != date_key
or pickings_by_date[date_key] != move.picking_id
or pickings_by_date.get(date_key) != move.picking_id
):
if date_key not in pickings_by_date:
copy_vals = line._first_picking_copy_vals(key, line)
Expand Down

0 comments on commit c0984b6

Please sign in to comment.