Skip to main content

Stock Lock Lot

Project description

License: AGPL-3

Block Serial Numbers/lots

This module allows you to define whether a Serial Number/lot is blocked or not. The default value can be set on the Product Category, in the field “Block new Serial Numbers/lots”. Is possible to specify in a location if locked lots are allowed to move there.


To allow a user to block or unblock a Lot:

  1. open the user settings (menu “Configuration > Users”)

  2. in the “Warehouse” section, check the box “Allow to block/unblock Serial Numbers/Lots”

To allow move locked lots to a location: #. open the locations (menu “Warehouse > Configuration > Locations”) #. check the box “Allow Locked”

Optional: enforce strict blocking

By default, users are not allowed to force-move a blocked Serial Number/lot by forcing the availability of a stock operation. If you do not want to enforce such a strict blocking of Serial Numbers/lots:

  1. open the warehouse settings (menu “Configuration > Warehouse”)

  2. in the “Lot blocking” section, uncheck the box “Strictly forbid moves on blocked Serial Numbers/lots.”


Two new buttons let you block/unblock a Serial Number/lot in the form view. Blocking/unblocking can also be done from the list view, by selecting the Serial Numbers/lots and choosing the option “Block/Unblock lots”.

Only lots which have no reservation can be blocked.

Delivery Orders are not allowed to select a blocked Serial Number/lot.

Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.




Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page