Deltatech Warehouse Map
by Terrabit https://www.terrabit.ro , Dorin Hongu https://www.terrabit.ro
Odoo
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 397 |
| Technical Name |
deltatech_warehouse_map |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Deltatech Warehouse Map

- Features:
- Generic warehouse map for any stock.location (backend/QWeb):
- Select a location and see its direct children as rows.
- Each row shows a full‑width bar split into equal segments for the next level (grandchildren), enabling quick drill‑down.
- Click any segment to open the graphical view for that sub‑location; a Back link returns to the parent.
- Visual occupancy per sub‑location:
- Each segment contains an internal progress bar representing the occupancy percentage of that sub‑location.
- Color thresholds: green (<60%), yellow (60–90%), red (≥90%). High‑contrast labels with the name and (current/max) values.
- Clear cell borders to visually separate segments.
- Capacity and occupancy tracking on stock.location:
- max_products_leaf (manual, for leaf locations).
- Computed max_products (sum of children for non‑leaf locations).
- Computed current_products (for leaves: sum of quantity from stock.quant with quantity > 0; for non‑leaves: sum of children).
- Computed occupancy_ratio = current/max (protected against division by zero).
- Navigation and UI integration:
- List view button “Map” on Locations; form smart button “Open Map”.
- Menu: Inventory → Warehouse Map opens the Stock root in the generic view.
- Technical details:
- Routes: /deltatech/warehouse_map and /deltatech/warehouse_map/location/<id>.
- Layout independent of Bootstrap utilities; responsive flex layout to keep the name and bar on a single line.
- Optional demo data generation:
- A post‑init hook can create a sample hierarchical structure under the Stock location for quick testing.
- Generic warehouse map for any stock.location (backend/QWeb):
- Configuration:
- Set Max products (leaf) on leaf locations in the Location form (Capacity section). Non‑leaf values are computed from children.
- Usage:
- Open Inventory → Configuration → Locations and click “Map” on any record, or use the smart button on the Location form.
- From the Warehouse Map menu, start at the Stock root and drill down by clicking segments.
- Notes & limitations:
- Occupancy is based on total on‑hand quantity (sum(quantity)) in leaf locations; can be adapted to available quantity or other metrics if needed.
- Segments are equal‑width by design (not weighted by capacity) to keep a consistent visual grid.
Table of contents
Bug Tracker
Bugs are tracked on Terrabit Issues. In case of trouble, please check there if your issue has already been reported.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Terrabit
- Dorin Hongu
Maintainers
This module is part of the dhongu/deltatech project on GitHub.
You are welcome to contribute.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module