Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Inventory
  3. Stock Variant Matrix Preview v 19.0
  4. Sales Conditions FAQ

Stock Variant Matrix Preview

by QoriTech https://odootips.com
Odoo

$ 20.00

v 19.0 Third Party
Live Preview
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Discuss (mail)
Lines of code 949
Technical Name qt_stock_variant_preview
LicenseLGPL-3
Websitehttps://odootips.com
Versions 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Discuss (mail)
Lines of code 949
Technical Name qt_stock_variant_preview
LicenseLGPL-3
Websitehttps://odootips.com
Versions 17.0 18.0 19.0
Stock Variant Matrix Preview
Real-time stock matrix preview per variant on product form

This module adds a Stock Preview tab to the product form that displays a full variant matrix with On Hand and Forecasted quantities. Organized by warehouse and location, with collapsible sections, zero-stock filtering, and Excel export.

  • ✅ Variant Matrix Grid - Columns = first attribute, rows = remaining attributes
  • ✅ On Hand & Forecast - Toggle forecast display alongside on-hand stock
  • ✅ Warehouse Groups - Collapsible sections per warehouse with aggregate totals
  • ✅ Location Breakdown - Per-location matrices within each warehouse
  • ✅ Row & Column Totals - Automatic totals with grand total
  • ✅ Smart Filters - Filter by warehouse, location (searchable), show/hide zeros
  • ✅ Excel Export - Download stock matrix as Excel with current filters applied
  • ✅ Read-Only & Safe - Only reads data, no writes, no native method overrides
  • ✅ 3+ Attribute Support - Compound rows for products with 3 or more attributes
  • ✅ i18n Ready - Translation-ready with .pot file included
▶ Watch on YouTube
  • ✔ Community
  • ✔
    Enterprise
    (On-premises)
  • ✔ Odoo.sh
  • ✘ Online
Odoo Version
19.0
📦 Dependencies
  • • Inventory (stock)
💻 Technical
  • • OWL Component (view widget)
  • • No Python dependencies
  • • Read-only, no DB writes
  • • License: LGPL-3
📷 Screenshots
1. Stock Preview Tab on Product Form

The Stock Preview tab appears automatically on storable products with variants. It displays a summary bar with total variants, on hand, and forecast quantities.

📷 Stock Preview tab with summary header, filters, and warehouse groups

Stock Preview Tab
📖 Documentation
  • 📖 User Guide
  • ⚙ Installation
  • ❓ FAQ
  • 📧 Support
  • 📋 1. Overview
  • 🔍 2. Filters
  • 🏭 3. Warehouses
  • 📈 4. Forecast
  • 📊 5. Excel Export
📋 1. Overview

The Stock Preview tab is automatically visible on the product form when:

overview
✅ Track Inventory Enabled

The product must be of type Goods with is_storable (Track Inventory) checked.

✅ Has Variants

The product must have 2 or more variants configured via attributes.

The matrix displays the first attribute as columns and all remaining attributes as compound rows. For example, a product with Color (Red, Blue) and Size (S, M, L) will show Color as columns and Size as rows.

1 Attribute

Single row matrix (e.g., Color only)

2 Attributes

Standard 2D matrix (Color x Size)

3+ Attributes

Compound rows (Size • Height)

🔍 2. Filters

Use the filters in the toolbar to narrow down stock data:

Filter
Available Filters:
  1. Warehouse - Select a specific warehouse or view all warehouses
  2. Location - Searchable dropdown showing only locations with stock (appears when a warehouse is selected)
  3. Forecast - Toggle to show forecast (FC) columns alongside on-hand (OH)
  4. Show/Hide Zeros - Toggle visibility of rows and columns with zero stock
  5. Excel - Download the current view as a formatted Excel file
💡 Tip: The location dropdown only shows locations where this product actually has stock, keeping the list clean and practical.
🏭 3. Warehouse Groups

Each warehouse is displayed as a collapsible card. The card header shows the warehouse name with total OH and FC quantities. Click to expand and view:

warehouse
Total General Matrix

Aggregated stock across all locations in the warehouse. Shown first with a "Total General" label.

Per-Location Matrices

Individual matrices for each internal location. The location path is shown in the header cell (e.g., WH/Stock/A1 - Product Name).

📈 4. Forecast Mode

Click the Forecast button to enable forecast display. When active:

forecast
  1. Each column splits into OH (On Hand) and FC (Forecast) sub-columns
  2. Row totals and column totals include both OH and FC sums
  3. Grand total shows both aggregated values
  4. On-hand stock is always visible — it never hides
⚠ Note: Forecast = On Hand + Incoming - Outgoing. This uses Odoo's native virtual_available field.
📊 5. Excel Export

Click the green Excel button to download a .xlsx file with all matrices matching your current filters.

xls
✅ What's included
  • One sheet per warehouse
  • Total General matrix + per-location matrices
  • Formatted headers matching the UI colors
  • OH + FC columns when forecast is enabled
🔍 Respects Filters
  • Warehouse filter → only that warehouse sheet
  • Location filter → only that location's data
  • Forecast toggle → includes FC columns
⚙ Installation
Steps:
  1. Copy the qt_stock_variant_preview folder into your Odoo custom addons directory
  2. Restart the Odoo server
  3. Go to Apps, remove the "Apps" filter, and search for "Stock Variant Matrix Preview"
  4. Click Install
  5. Ensure Variants are enabled: Settings → Inventory → Product Variants
  6. Navigate to any storable product with variants to see the Stock Preview tab
💡 Requirement: Only the Inventory (stock) module is required. No additional Python packages needed — xlsxwriter is already bundled with Odoo.
❓ Frequently Asked Questions

The tab only appears when: (1) the product is of type Goods with Track Inventory enabled (is_storable), (2) the product has 2+ variants, and (3) your user has the Product Variants group enabled.

No. This module is completely read-only. It only calls Odoo's native _compute_quantities_dict to read stock values. No write operations, no override of native methods.

The module is optimized for performance: stock is computed in batch per location, attribute values are pre-fetched in a single call, and warehouse totals are aggregated in Python without extra DB queries.

By design, the location filter only shows locations where the product actually has stock (quant quantity != 0). This keeps the dropdown clean and practical, especially in warehouses with many locations.
📧 Support

For questions, bug reports, or feature requests, please contact us:

🌐 Website
odootips.com
📧 Email
click - Email

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with