Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 16 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.11 MB
Module directory on disk
Code analysis 1 migration note 2 models 6 views 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…