Stock Move Line Qty Picked
stock_move_line_qty_picked · OCA/stock-logistics-workflow
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by25/257 modules depend on it
-
Maturity12/25In 2 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE stock_move_line SET qty_picked = CASE WHEN picked OR state = 'done' THEN quantity ELSE 0 END WHERE qty_picked IS NULL OR (qty_picked = 0 AND (picked OR state = 'done') AND quantity != 0)` - re-check the table/column names still match after upgrading. (2 occurrences in this file) 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 qty_picked field on stock.move.line to allow scanning
different quantities without having to update the quantity field, what would
modify existing reservations.
It is meant to restore the behaviour we had in previous versions with qty_done
field, but using another name to avoid clashing with the field defined in Odoo
Enterprise's Stock barcode module.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- barcode_stock, mrp_stock_move_line_qty_picked, shopfloor, stock_barcodes, stock_location_fill_state_qty_picked, stock_storage_type_move_line_qty_picked, stock_weighing
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_move_kandan |
stock.move.kanban | stock.move | kanban | Inherits stock.view_move_kandan |
view_move_line_form |
stock.move.line.form | stock.move.line | form | Inherits stock.view_move_line_form |
view_picking_form |
stock.picking.form | stock.picking | form | Inherits stock.view_picking_form |
view_picking_move_tree |
stock.picking.move.list | stock.move | list | Inherits stock.view_picking_move_tree |
view_stock_move_line_detailed_operation_tree |
stock.move.line.operations.list | stock.move.line | list | Inherits stock.view_stock_move_line_detailed_operation_tree |
view_stock_move_line_operation_tree |
stock.move.line.operations.tree | stock.move.line | tree | Inherits stock.view_stock_move_line_operation_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
qty_pickedFloatcompute='_compute_qty_picked'digits='Product Unit of Measure'
No public methods.
-
pickedBooleancopy=Falseinverse='_inverse_picked' -
qty_pickedFloatcopy=Falsedigits='Product Unit of Measure'inverse='_inverse_qty_picked'
No public methods.
Loading…
Loading…