Picking Validation Restrict Entry Exit
by Terrabit https://www.terrabit.ro , Voicu Stefan https://www.terrabit.roPicking Restrict Entry/Exit
Validate receipts and deliveries only against orders
Receipts and deliveries should match what was ordered. This module stops warehouse users from validating a receipt or a delivery that contains products not linked to a purchase or sales order, or quantities larger than the demand.
Receipts and deliveries tied to an order: on Validate, every line with a quantity of a
receipt must come from a purchase order line, and every line of a delivery from a sales order line.
The check for receipts applies when Purchase (purchase_stock) is installed, the one for
deliveries when Sales (sale_stock) is installed.
No quantity above the demand: on Validate, a line whose done Quantity is larger than the Demand blocks the validation. The same check runs when the transfer is saved after the quantity of a line was changed.
No lines added by hand: a new line with a done quantity cannot be saved on a receipt or a delivery; on other transfers such a line cannot have a done quantity larger than its demand.
Exempt cases: returns and backorders are not checked at validation, and neither are internal transfers between two locations of the same warehouse.
Configuration
Users in the Picking create permission group are exempt from the checks at validation and can add lines on receipts and deliveries. At installation only the administrator is in the group; all other users are restricted. To exempt another user, activate the developer mode, go to Settings > Users & Companies > Groups, open Picking create permission and add the user.
Limitations
- Creating a receipt or a delivery without a source order is not blocked; only its validation is.
- The check of the done quantity on save applies to every user, including the members of Picking create permission, and also to returns and backorders.
20.0.0.0.15 (2026-11-03)
- Description, summary and banner rewritten after the code: the creation of a transfer without an origin is not blocked, only its validation; the exemption group holds only the administrator at installation, not all users.
20.0.0.0.14 (2026-10-16)
- Development status raised from Beta to Production/Stable: the module has been in production use at customers for a long time.
20.0.0.0.13 (2026-10-04)
- Fix (RESTRICT-001): the save-time restrictions in
write()inspected onlymove_ids_without_package, a field removed fromstock.pickingin Odoo 19, so they never ran. They now read themove_idscommands sent by the picking form: CREATE commands (virtual id from the web client or0) are checked as new lines, falling back on the picking's type and locations when the line does not carry them, UPDATE commands as existing lines (against the demand sent in the same save, if any). Commands without values (delete, unlink, link, clear, set) are ignored instead of crashing.
20.0.0.0.12 (2026-10-04)
- Fix: when several pickings were validated together, a single return or backorder in the selection exempted all of them from the restriction, so a receipt or delivery with a quantity above the ordered one could be validated. The return/backorder exemption is now checked for each picking.
20.0.0.0.11 (2026-10-04)
- Add unit tests covering validation and save-time restrictions on receipts, deliveries and internal transfers.
20.0.0.0.10 (2026-10-02)
- Migration to Odoo 20. No functional change: the
stock.picking/stock.movefields and thebutton_validate/writehooks used by the module are unchanged in Odoo 20.
19.0.0.0.10
- Own module icon, instead of the generic gears it had.
Changelog
19.0.0.0.9 (2026-09-23)
- Fix:
button_validatereadsale_line_id/purchase_line_idonstock.move, but those fields are added bysale_stock/purchase_stock, which this module does not depend on. In a database where they are not installed, validating any outgoing or incoming picking crashed withAttributeError: 'stock.move' object has no attribute 'sale_line_id'. The checks are now skipped when the field is absent — withoutsale_stock/purchase_stockthere is no order line a move could be linked to, so the restriction does not apply.
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
More apps by Terrabit
Other modules from the same publisher, built to work together. All apps →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Lines of code | 112 |
| Technical Name |
deltatech_picking_restrict_entry_exit |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module