OdooWiki OCA HUB

Stock Quant History Queued

stock_quant_history_queued folder_open OCA/stock-logistics-reporting open_in_new
Uncategorised License: AGPL-3

This module use queue job to regenerate stock.quant.history asynchronously.

This add the In Progress state on stock history snapshot and delegate the generation to a queue job process.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

This module makes stock snapshot generation run in the background using queue jobs, so users don't have to wait. It adds an 'In progress' state to stock history snapshots.

When you generate a stock quant history snapshot, instead of doing the work immediately, this module marks the snapshot as 'In progress' and sends the actual generation to a background job. This means you can continue working in Odoo while the snapshot is being created.

The module extends the stock.quant.history.snapshot model by adding a new state called 'queued' (shown as 'In progress'). It also overrides the action_generate_stock_quant_history method so that it no longer generates the snapshot directly but instead sets the state to 'queued' and schedules a queue job to do the generation later.

The queue job is created with a priority based on the snapshot's inventory date, so older snapshots are processed first. Once the job runs, the snapshot is generated and its state changes to 'generated'.

This module depends on stock_quant_history (which provides the snapshot feature) and queue_job (which handles background jobs). It does not add any new menus or screens; the change is visible in the existing snapshot form where the state field now includes 'In progress'.

Models and fields (1)
  • stock.quant.history.snapshot · extends an existing modelstate

Text generated by AI (DeepSeek) from reading the Odoo 17.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 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

No verified information

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.

info

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.