TIP: You can type at any time to perform a new search.
Stock Location Product Restriction
stock_location_product_restriction · OCA/stock-logistics-warehouse
Security findings
Migration considerations
stock_location_form_view— For a target of Odoo 17.0+: view 'stock_location_form_view' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve 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. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/stock-logistics-warehouse · module folder · Try on Runboat
- Module version
- 1.2.2
- Category
- Uncategorized
- Folder size
- 0.09 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/stock-logistics-warehouse
- Last tracking update
- 2026-08-07 08:09:15
- Authors
- ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- Laurent Mignon (ACSONE), Denis Roussel, Weblate, OCA-git-bot, oca-ci, CristianoMafraJunior, Nicolas Delbovier
Code Analysis
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 (0)
No new fields.
Public methods (0)No public methods.
Loading…