Skip to content
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: 7 additions & 3 deletions delivery_purchase_label/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,13 @@ def _create_purchase_delivery_label_picking(self, carrier):
moves.location_dest_id = picking.location_dest_id
# Remove the link on the sale and purchase
# To not impact the delivered quantity on them
picking.sale_id = False
moves.sale_line_id = False
moves.purchase_line_id = False
moves.write(
{
"group_id": False,
"sale_line_id": False,
"purchase_line_id": False,
}
)
picking.action_assign()
for move in picking.move_lines:
move.quantity_done = move.product_uom_qty
Expand Down