| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/stock-logistics-reporting |
| GIT | |
| GIT | https://github.com/OCA/stock-logistics-reporting.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/stock-logistics-reporting/tree/17.0/stock_quant_history |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Pierre Verkest <pierreverkest84@gmail.com> |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Pierre Verkest <pierreverkest84@gmail.com> |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/stock-logistics-reporting |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:20:10 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - stock - product - base - base_setup - web - bus - web_tour - uom - barcodes_gs1_nomenclature - barcodes - digest - portal - web_editor - http_routing - auth_signup - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_stock_quant_history_list |
stock.quant.history.list | stock.quant.history | tree | 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 | tree | New |
view_stock_quant_history_snapshot_search |
stock.quant.history.snapshot.search | stock.quant.history.snapshot | search | New |
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'
No public methods.
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'
action_generate_stock_quant_history(self)
action_related_stock_quant_history_tree_view(self)
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/stock-logistics-reporting |
| GIT | |
| GIT | https://github.com/OCA/stock-logistics-reporting.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/stock-logistics-reporting/tree/14.0/stock_quant_history |
| VERSION | |
| VERSION | 1.3.0 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Pierre Verkest <pierreverkest84@gmail.com>, Stéphane Mangin <stephane.mangin@foodles.com> |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Pierre Verkest <pierreverkest84@gmail.com>, Stéphane Mangin <stephane.mangin@foodles.com> |
| COMMITTERS | |
| COMMITTERS | Pierre Verkest, Weblate, OCA-git-bot, oca-ci, Stéphane Mangin |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/stock-logistics-reporting |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:41:11 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - stock - product - base - base_setup - web - bus - web_tour - uom - barcodes - digest - portal - web_editor - http_routing - auth_signup - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
Stock settings: auto lock picking on snapshot creation | res.config.settings | div | Inherits stock.res_config_settings_view_form |
view_stock_quant_history_list |
stock.quant.history.list | stock.quant.history | tree | 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 | tree | New |
view_stock_quant_history_snapshot_search |
stock.quant.history.snapshot.search | stock.quant.history.snapshot | search | New |
stock_history_snapshot_auto_locks_picking
Boolean
default=True
groups='stock.group_stock_manager'
help='When a stock quant history snapshot is generated, automatically locks all done pickings that are related to the snapshot.'
string='Auto lock picking on snapshot'
No public methods.
stock_history_snapshot_auto_locks_picking
Boolean
groups='stock.group_stock_manager'
readonly=False
related='company_id.stock_history_snapshot_auto_locks_picking'
No public methods.
No new fields.
Public methods (4)action_toggle_is_locked(self)
check_unlock_allowed(self)
get_stock_quant_history(self)
write(self, vals)
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.production.lot
check_company=True
index=True
ondelete='restrict'
readonly=True
args: 'stock.production.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
args: 'Quantity'
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'
No public methods.
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
states={'draft': [('readonly', False)]}
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'
action_generate_stock_quant_history(self)
action_related_stock_quant_history_tree_view(self)
| STATUS | |
|---|---|
| STATUS | Open migration PR - not merged yet for this version |
| REPOSITORY | |
| REPOSITORY | OCA/stock-logistics-reporting |
| PULL REQUEST | |
| PULL REQUEST | [18.0][MIG] stock_quant_history (#436) |