OdooWiki OCA HUB

Shifting End of lot

stock_shifting_end_of_lot folder_open OCA/stock-logistics-workflow open_in_new
Stock License: AGPL-3

Typical use case:

  • you deliver products with lots and expiry dates to your warehouse coming from production.
  • you only send round quantity depending of your packaging (i.e. pallets)
  • you don't want for the next outgoing picking, that Odoo proposes a lower quantity than needed by your conditioning.
  • instead you want to ship the next lot with complete quantity for pallet.
  • you want to consume end of lot quantity from another warehouse or location

This module allow to make empty a stock location for a product (may be a particular lot) when a delivery occurs on this location. In that case, quantity rest is moved automatically towards a another location.

Here is a delivery matching behavior which trigger an internal picking transfer

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Automatically moves leftover quantities of a product (or lot) out of a source location to a chosen destination when a delivery or internal transfer is validated, so the next picking starts with a full pallet.

This module adds an "End Of Lot" section on the operation type form (for example Delivery Orders or Internal Transfers). There you can set an "End of lot destination" location, an "End of lot picking type" used to create the follow-up transfer, and optionally a list of "Partners" so the behaviour only triggers for those customers.

When a picking of that operation type is validated, Odoo checks the remaining unreserved quantity of the products (and their lots) still in the source location. If any quantity is left, it automatically creates a new internal transfer from the same source location to the configured end-of-lot destination, using the configured operation type. The original picking gets a message in its chatter saying the end-of-lot picking was created and must be validated, and a to-do activity is scheduled for the current user.

  • Only pickings whose operation type has both an end-of-lot destination and an end-of-lot picking type trigger the behaviour.
  • If partners are listed, only pickings for those partners trigger it.
  • Products without a lot are handled too, as long as they have leftover quantity.
  • The new transfer is created in draft and must be validated manually.

The module touches stock.picking and stock.picking.type, and adds fields visible on the operation type configuration screen.

Depends on

stock
Models and fields (2)
  • stock.picking · extends an existing model
  • stock.picking.type · extends an existing modelend_lot_location_id (End of lot destination), end_lot_partner_ids (Partners), end_lot_picking_type_id (End of lot picking type)

Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 12.0

Goto chosen picking type Customer/outgoing or internal for this workflow and fill 'End Of Lot' section:

  • End of lot Location.
  • End of lot picking type
  • End of lot partners (optionally)

Only picking types with these settings will benefit of the module feature.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.