TIP: You can type at any time to perform a new search.
Stock Picking Kind
stock_picking_kind · OCA/stock-logistics-workflow
Security findings
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. No target version is selected: apply version-specific advice only when migrating to that version or later.
- 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
- ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- OCA-git-bot, oca-ci, Wesley Oliveira
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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.
Code Analysis
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…