This module allows regenerate stock.quant as it was for a given date.
All stock quant history re-generated for a given date are called snapshot.
To generate the first snapshot this module assume all stock.move.line are present in the database.
Next snapshot is computed based on the previous snapshot present in the database.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Recreate what stock quantities looked like at a past date. You create a dated snapshot, click Generate, and Odoo rebuilds the quantities per product, lot and location so you can report on historical stock.
This module adds a way to rebuild past stock quantities, called a snapshot. Under Inventory > Reporting > Stock history you get two menus: Snapshot and Stock history.
In Snapshot you create a record with an Inventory date and click the Generate button. Odoo then rebuilds the quantities as they were on that date, based on the previous generated snapshot and the stock movements done after it. The first snapshot is built from all completed stock moves in the database. Only internal locations are taken into account, and only storable products. Lines with a zero quantity are removed.
Each snapshot shows its Status (Draft or Generated), the Generated date and the Snapshot base used. Once generated, a History details button opens the detailed lines: product, lot/serial number, location, company and quantity.
In Stock history you can list, pivot and graph these historical quantities, filter by product, location (including sub-locations), company, lot or date, and group by snapshot, date, product, lot or location. A Compare stocks action is also available from the snapshot list.
Only users with the Stock Manager role can read the history lines; they can fully manage snapshots.
Depends on
Required by other modules
Menus it adds
Models and fields (2)
- stock.quant.history · new modellot_id, quantity, company_id (Company), product_id, location_id, snapshot_id (Snapshot settings), inventory_date, product_uom_id, product_tmpl_id (Product Template)
- stock.quant.history.snapshot · new modelname, state (Status), generated_date (Generated date), inventory_date (Inventory date), previous_snapshot_id (Snapshot base), stock_quant_history_ids (Stock quant history)
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/stock-logistics-reporting.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0Generate a new stock snapshot
- Go to: Inventory / Reporting / History / Stock snapshot
- choose the date you want to re-generate stock quants
- click on Generate
Consult stock quant for a given snapshot
- Go to: Inventory / Reporting / History / Stock snapshot
- select the existing snapshot to open the form view
- click on smart button to display quants at that time
Compare stock over snapshots
- Go to: Inventory / Reporting / History / Stock snapshot
- In tree view select at least 2 snapshots
- Click on Action / Compare stocks
- You'll be redirected to the stock quant tree view for selected snapshots
or
- Go to: Inventory / Reporting / History / Stock quants
- use different filters / group and views to make your analysis
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.