Stock Location Inactive
stock_location_inactive · OCA/stock-logistics-warehouse
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 129 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.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.02 MB
Module directory on disk
Code analysis
7 migration notes
3 models
1 view
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
ReportStockMove— Class 'ReportStockMove' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceStockLocation— Class 'StockLocation' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceStockMove— Class 'StockMove' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · 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 allows you to check that:
* a location is empty (no product)
* a location has no active sub-locations
before setting it as inactive.
It also modify the Inventory Analysis report to hide inactive locations.
Contributors
- Maxime Chambreuil (maxime.chambreuil@savoirfairelinux.com)
- El Hadji Dem (elhadji.dem@savoirfairelinux.com)
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_stock_location_active_form |
stock.location | form | Inherits stock.view_location_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
init(self, cr)
New fields (0)
No new fields.
Public methods (2)-
onchange_active_field(self, cr, uid, ids, active, context=None) -
write(self, cr, uid, ids, vals, context=None)
New fields (0)
No new fields.
Public methods (1)-
action_done(self, cr, uid, ids, context=None)Override the action_done to add constraint to check if the location_dest is disable