Stock Picking Return Lot
stock_picking_return_lot · OCA/stock-logistics-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
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 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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings | form | Inherits stock.res_config_settings_view_form | |
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 4
-
stock_picking_return_lot_restrictBooleanstring='Restrict lot that can be selected based on those used in the move'
No public methods.
-
stock_picking_return_lot_restrictBooleanreadonly=Falserelated='company_id.stock_picking_return_lot_restrict'
No public methods.
-
lots_visibleBooleancompute='_compute_lots_visible'
-
action_create_returns_all(self)Force a reset to returnable quantities per lot
-
lot_idMany2one → stock.lotdomain='lot_id_domain'string='Lot/Serial Number' args: 'stock.lot' -
lot_id_domainBinarycompute='_compute_lot_id_domain'
-
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…