TIP: You can type at any time to perform a new search.
Stock Picking Return Lot
stock_picking_return_lot · OCA/stock-logistics-workflow
Security findings
- Repository
- OCA/stock-logistics-workflow · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Uncategorized
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/stock-logistics-workflow
- Last tracking update
- 2026-10-04 00:16:45
- Authors
- Camptocamp, ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- Víctor Martínez, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
When a product is tracked by lot or serial number and is returned by a customer, it’s crucial to clearly indicate to the user which lot or serial number can be accepted. This way, we prevent user from receiving a product with a lot or serial number different from the original delivery. This module enhances the return process by creating a separate return line for each product/lot and automatically pre-filling it with the lot from the original delivery. It relies on the [Stock Restrict Lot](https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_restrict_lot) module to enforce accurate tracking, ensuring that the reception order reflects the correct lot or serial number that should be received. This module also integrates with [Stock Picking Return Restricted Qty] (https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_picking_return_restricted_qty) because the quantities are now split up per lot.
Code Analysis
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_stock_return_picking_form |
stock.return.picking | form | Inherits stock.view_stock_return_picking_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (1)
-
lots_visibleBooleancompute='_compute_lots_visible'
-
action_create_returns_all(self)Force a reset to returnable quantities per lot
New fields (1)
-
lot_idMany2one → stock.lotdomain="[('product_id', '=', product_id)]"string='Lot/Serial Number' args: 'stock.lot'
-
get_returned_restricted_quantity(self, stock_move)@api.modelGet the restricted quantity by lot (if any). Overwrite of this method from stock_picking_return_restricted_qty. This module calls this method with either zero or one record(s) in `self`, and does not use the actual value of `self`. For our purposes, we want to use the value of `lot_id` in self as an additional filter (and using an empty value for `lot_id` should work fine in case `self` is not set).
Loading…
Loading…
Loading…
Loading…
Loading…