Stock Picking Kind
stock_picking_kind · OCA/stock-logistics-workflow
Health
75/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 11 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis
1 migration note
1 model
1 view
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE stock_picking SET picking_kind = ( CASE WHEN origin.usage = 'supplier' AND destination.usage = 'customer' THEN 'drop_shipping' WHEN origin.usage = 'customer' AND destination.usage = 'supplier' THEN 'drop_shipping_return' WHEN origin.usage = 'customer' AND destination.usage != 'customer' THEN 'customer_return' WHEN origin.usage != 'customer' AND destination.usage = 'customer' THEN 'customer_out' WHEN origin.usage = 'supplier' AND destination.usage != 'supplier' THEN 'supplier_in' WHEN origin.usage != 'supplier' AND destination.usage = 'supplier' THEN 'supplier_return' ELSE NULL END ) FROM stock_location origin, stock_location destination WHERE stock_picking.location_id = origin.id AND stock_picking.location_dest_id = destination.id` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module adds a field picking_kind on stock.picking to indicate the kind of the picking based on source and destination locations of the picking.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_picking_internal_search |
stock.picking.internal.search in (stock_picking_kind) | stock.picking | search | Inherits stock.view_picking_internal_search |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (1)
-
picking_kindSelectioncompute='_compute_picking_kind'help='Indicate the kind of picking based on its locations'selection=[('customer_return', 'Customer Return'), ('customer_out', 'Customer Delivery'), ('supplier_return', 'Supplier Return'), ('supplier_in', 'Supplier Reception'), ('drop_shipping', 'Drop Shipping'), ('drop_shipping_return', 'Drop Shipping Return')]store=True
No public methods.
Loading…
Loading…
Loading…
Loading…