Stock Location Product Restriction
stock_location_product_restriction · OCA/stock-logistics-warehouse
Health
67/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 10.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.1 MB
Module directory on disk
Code analysis
2 migration notes
2 models
3 views
0 HTTP endpoints
Migration considerations
stock_location_form_view— 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_location set product_restriction = 'any'; UPDATE stock_location set parent_product_restriction = 'any' where location_id is not null;` - 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 |
|---|---|---|---|---|
stock_location_form_view |
stock.location.form (in stock_location_product_restriction) | stock.location | form | Inherits stock.view_location_form |
stock_location_search_view |
stock.location.search (in stock_location_product_restriction) | stock.location | search | Inherits stock.view_location_search |
stock_location_tree_view |
stock.location.tree (in stock_location_unique_product) | stock.location | tree | Inherits stock.view_location_tree2 |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (5)
-
has_restriction_violationBooleancompute='_compute_restriction_violation'recursive=Truesearch='_search_has_restriction_violation' -
parent_product_restrictionSelectionreadonly=Truerecursive=Truerelated='location_id.product_restriction'store=Truestring='Parent Location Product Restriction' -
product_restrictionSelectioncompute='_compute_product_restriction'default='any'help="If 'Same product' is selected the system will prevent to put items of different products into the same location."index=Truerecursive=Truerequired=Trueselection=<expr>store=True -
restriction_violation_messageCharcompute='_compute_restriction_violation'recursive=True -
specific_product_restrictionSelectiondefault=Falsehelp='If specified the restriction specified will apply to the current location and all its children'selection=<expr>
No public methods.
New fields (1)
-
being_filled_before_done_location_idsOne2many → stock.locationcomodel_name='stock.location'compute='_compute_being_filled_before_done_location_ids'help="Technical field to compute locations with their fill stateat 'Being Filled' before they'll be filled with an incoming move."
No public methods.
Loading…