| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Purchase (purchase) • Sales (sale_management) • Discuss (mail) • Invoicing (account) |
| Lines of code | 1757 |
| Technical Name |
mast_inventory_ageing_report |
| License | OPL-1 |
| Versions | 15.0 16.0 17.0 18.0 19.0 |
Inventory Aging Report
Track how long stock has been sitting in your warehouse with precise aging buckets, valuations, and exportable reports — for any Odoo version from 15 to 19.
Overview
The Inventory Aging Report module gives warehouse and finance teams a clear picture of stock age distribution. It breaks on-hand inventory into up to 6 configurable aging periods (e.g. 0-30, 31-60, 61-90 days …) and shows the quantity and landed cost value per bucket — helping you spot slow-moving or obsolete stock instantly.
Reports can be generated per Warehouse or per individual Stock Location, filtered by product or category, and exported to both PDF and Excel (.xlsx).
Screenshots
Key Features
6 Aging Buckets
Set a custom period length (e.g. 30 days). The report auto-builds 5 consecutive buckets plus an overflow bucket for the oldest stock.
Cost Valuation
Each bucket shows both quantity on hand and the book value sourced directly from posted accounting move lines (AVCO / FIFO compatible).
Warehouse & Location
Switch between a warehouse-level summary (uses lot stock location) or a granular per-location breakdown — all in one wizard toggle.
Product & Category Filter
Focus on a specific set of products or an entire product category. The wizard enforces mutual exclusivity to keep reports clean.
PDF Report
QWeb-rendered A4 PDF with full aging table, company header, date, period length info, and a clean tabular layout ready for management.
Excel Export (.xlsx)
Multi-section xlsx workbook via xlsxwriter: one section
per warehouse/location, color-coded headers, bold totals, and
Qty/Value sub-columns per period.
Multi-Company
Company selector on the wizard ensures accounting move lines and warehouses are filtered to the correct company context.
Raw SQL Performance
Core data queries use direct SQL (not ORM search loops) against
account_move_line × stock_move for speed
even with large datasets.
Arabic / English Ready
UTF-8 encoded throughout. Works seamlessly with right-to-left Arabic interfaces and GCC region Odoo deployments.
How It Works
- Open the wizard from Inventory → Reporting → Inventory Aging Report.
- Select your Company, filter type (Product or Category), and the specific products/categories.
- Set the From Date (the reference date — aging is calculated backwards from this date) and Period Length in days.
- Choose report basis: Warehouse (recommended) or individual Locations.
- Click Print PDF for a management-ready PDF, or Print Excel to download an xlsx workbook.
Version Compatibility
Community
Community
Community
Community
Community
pip install xlsxwriter). PDF export uses the standard Odoo wkhtmltopdf stack.
Changelog
| Version | Odoo | Changes |
|---|---|---|
| 1.0 | 14.0 | Initial release — warehouse & location aging, PDF + Excel, product/category filter. |
| 15.0.1.0 | 15.0 | Removed deprecated pycompat and decimal_precision imports.
Refactored Excel writer into helper functions. Added license field. |
| 16.0.1.0 | 16.0 | Compatibility verified. No breaking API changes in this version branch. |
| 17.0.1.0 | 17.0 | Migrated all XML view attributes from deprecated attrs= syntax to
native invisible= / required= domain expressions
(mandatory for Odoo 17+). |
| 18.0.1.0 | 18.0 | Verified compatibility with Odoo 18 framework changes. No additional API deprecations affecting this module. |
| 19.0.1.0 | 19.0 | Forward-ported for Odoo 19. All ORM, QWeb, and security patterns aligned with current Odoo 19 standards. |
Installation
- Copy the
mast_inventory_ageing_reportfolder into your Odoo addons path. - Restart the Odoo server (
./odoo-bin -c odoo.conf). - Go to Settings → Apps, search for Inventory Aging, and click Install.
- Ensure
xlsxwriteris installed in your Python environment. - Navigate to Inventory → Reporting → Inventory Aging Report to run your first report.
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