Enforce manually selected lot
stock_move_manual_lot · OCA/stock-logistics-workflow
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 55 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 12.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.06 MB
Module directory on disk
Code analysis
4 migration notes
4 models
3 views
0 HTTP endpoints
Migration considerations
StockMoveLine— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceview_move_line_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_picking_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `update stock_move_line set manual_lot_id=lot_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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_move_line_form |
stock.move.line | form | Inherits stock.view_move_line_form | |
view_picking_form |
stock.picking | form | Inherits stock.view_picking_form | |
view_picking_type_form |
stock.picking.type | form | Inherits stock.view_picking_type_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
manual_lot_idMany2one → stock.production.lotcomodel_name='stock.production.lot'copy=Falsestring='Lot/Serial' -
use_manual_lot_selectionBooleanrelated='picking_id.picking_type_id.use_manual_lot_selection'
-
create(self, vals_list)@api.model_create_multiReuse zero quantity move line from the same move. -
unlink(self)@api.multiKeep move lines if they are assigned a manual lot in a batch -
write(self, vals)
New fields (1)
-
use_manual_lot_selectionBooleanrelated='picking_type_id.use_manual_lot_selection'
-
action_done(self)Keep manual lots up to date not to lose visibility. Keep visibility of transferred lot in the case of * an untracked product transferred without setting a manual lot * an update of a picking type to use manual lot selection -
button_validate(self)Check for missing manually assigned lots -
write(self, vals)Encode move line quantities in the context if necessary. If manual_lot_id is being written on the move lines, this could lead to freeing move lines from the same picking that are also being written in this very same call. We encode the original reserved quantities of the move lines in the context so that they can be rereserved for these quantities.
New fields (1)
-
use_manual_lot_selectionBooleandefault=False
No public methods.