Repository
OCA/stock-logistics-reporting · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.11 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-reporting
Last tracking update
2026-08-07 08:42:55
Authors
Odoo Community Association (OCA), Pierre Verkest <pierreverkest84@gmail.com>
Maintainers
Odoo Community Association (OCA), Pierre Verkest <pierreverkest84@gmail.com>
Committers
OCA-git-bot, oca-ci, bosd
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
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.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
view_stock_quant_history_list stock.quant.history.list stock.quant.history list New
view_stock_quant_history_pivot stock.quant.history.pivot stock.quant.history pivot New
view_stock_quant_history_search stock.quant.history.search stock.quant.history search New
view_stock_quant_history_snapshot_form stock.quant.history.snapshot.form stock.quant.history.snapshot form New
view_stock_quant_history_snapshot_list stock.quant.history.snapshot.list stock.quant.history.snapshot list New
view_stock_quant_history_snapshot_search stock.quant.history.snapshot.search stock.quant.history.snapshot search New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (9)
  • company_id Many2one
    readonly=True related='location_id.company_id' store=True string='Company'
  • inventory_date Datetime
    index=True related='snapshot_id.inventory_date' store=True
  • location_id Many2one → stock.location
    auto_join=True check_company=True index=True ondelete='restrict' readonly=True required=True args: 'stock.location', 'Location'
  • lot_id Many2one → stock.lot
    check_company=True index=True ondelete='restrict' readonly=True args: 'stock.lot', 'Lot/Serial Number'
  • product_id Many2one → product.product
    check_company=True index=True ondelete='restrict' readonly=True required=True args: 'product.product', 'Product'
  • product_tmpl_id Many2one → product.template
    readonly=True related='product_id.product_tmpl_id' string='Product Template' args: 'product.template'
  • product_uom_id Many2one → uom.uom
    readonly=True related='product_id.uom_id' args: 'uom.uom', 'Unit of Measure'
  • quantity Float
    help='Quantity of products in this quant, in the default unit of measure of the product' readonly=True
  • snapshot_id Many2one → stock.quant.history.snapshot
    comodel_name='stock.quant.history.snapshot' help='Snapshot settings used to generate this line' index=True ondelete='cascade' required=True string='Snapshot settings'
Public methods (0)

No public methods.

New fields (6)
  • generated_date Datetime
    copy=False help='Date when stock.quant.history line have been created.' readonly=True string='Generated date'
  • inventory_date Datetime
    help='The date used to create stock.quant.history as it was for the given date' readonly=True required=True string='Inventory date'
  • name Char
    compute='_compute_name'
  • previous_snapshot_id Many2one → stock.quant.history.snapshot
    comodel_name='stock.quant.history.snapshot' help='Base snapshot used to generate this snapshot' readonly=True string='Snapshot base'
  • state Selection
    copy=False default='draft' readonly=True required=True selection=[('draft', 'Draft'), ('generated', 'Generated')] string='Status'
  • stock_quant_history_ids One2many → stock.quant.history
    comodel_name='stock.quant.history' help='Generated stock quant history for current snapshot settings.' inverse_name='snapshot_id' string='Stock quant history'
Public methods (2)
  • action_generate_stock_quant_history(self)
  • action_related_stock_quant_history_tree_view(self)

Loading…

Loading…