Stock Picking Immediate Transfer Warning
stock_picking_immediate_transfer_warning · OCA/stock-logistics-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Description
In Odoo < 17, when validating a stock transfer where all lines had reserved quantities but no done quantities were recorded, a wizard would warn the user that all reserved quantities would be processed, giving them the option to cancel or proceed.
Since Odoo >= 17, the qty_done field was replaced by a picked boolean on stock
moves. However, when no move has been explicitly marked as picked, Odoo
silently marks all moves as picked and processes the transfer without any
warning.
This module restores the previous behavior by showing a confirmation wizard when validating a transfer where no moves have been explicitly picked. The user can then choose to proceed with processing all reserved quantities or discard the operation. We only show the wizard when the validation is done from the UI, to prevent other logics to fail.
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 |
|---|---|---|---|---|
view_immediate_transfer_warning |
stock.immediate.transfer.warning.form | stock.immediate.transfer.warning | form | New |
view_picking_form |
stock.picking.form - stock_picking_immediate_transfer_warning | stock.picking | form | Inherits stock.view_picking_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
immediate_transfer_warning_line_idsOne2many → stock.immediate.transfer.warning.linestring='Immediate Transfer Warning Lines' args: 'stock.immediate.transfer.warning.line', 'immediate_transfer_warning_id' -
pick_idsMany2many → stock.pickingargs: 'stock.picking', 'stock_picking_immediate_rel'
-
default_get(self, fields_list)@api.model -
process(self)
-
immediate_transfer_warning_idMany2one → stock.immediate.transfer.warningargs: 'stock.immediate.transfer.warning', 'Immediate Transfer Warning' -
picking_idMany2one → stock.pickingargs: 'stock.picking', 'Transfer'
No public methods.
No new fields.
Public methods (0)No public methods.