Stock Product Demand Info

stock_product_demand_info
REPOSITORY
REPOSITORYOCA/stock-logistics-reporting
GIT
GIThttps://github.com/OCA/stock-logistics-reporting.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-reporting/tree/19.0/stock_product_demand_info
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYInventory
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Iván Todorovich, oca-ci, Maksym Yankin
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-reporting
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:50
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds an indicator on the product and replenishments to quickly
see the past demand by configurable periods, like:

![product](static/description/product.png)

![replenishment](static/description/replenishment.png)

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
product_template_form_view product.template xpath Inherits product.product_template_form_view
res_config_settings_view_form res.config.settings block Inherits stock.res_config_settings_view_form
view_product_demand_period_form product.demand.period form New
view_product_demand_period_list product.demand.period list New
view_stock_warehouse_orderpoint_form_demand_period stock.warehouse.orderpoint field Inherits stock.view_warehouse_orderpoint_form
view_stock_warehouse_orderpoint_list_demand_period stock.warehouse.orderpoint field Inherits stock.view_warehouse_orderpoint_tree_editable
Models touched (5)

New fields (5)
  • active Boolean
    default=True
  • end_expression Char
    default='now' help="End of the time window used to search for outgoing stock moves (demand). Same syntax as Start: 'today'/'now' with ±Nd, ±Nw, ±Nm, ±Ny, or =1d, =6m." required=True
  • name Char
    required=True translate=True
  • sequence Integer
    default=10
  • start_expression Char
    help="Start of the time window used to search for outgoing stock moves. Use 'today' or 'now' followed by optional offsets: ±Nd (days), ±Nw (weeks), ±Nm (months), ±Ny (years). Use =1d for first day of month, =6m for a given month." required=True
Public methods (0)

No public methods.

New fields (1)
  • demand_period_info Json
    compute='_compute_demand_period_info' help='Past demand per period. Periods can be configured in General Settings.' string='Demand by period'
Public methods (0)

No public methods.

New fields (1)
  • demand_period_info Json
    compute='_compute_demand_period_info' help='Past demand per period. Periods can be configured in General Settings.' string='Demand by period'
Public methods (0)

No public methods.

New fields (1)
  • demand_period_ids Many2many → product.demand.period
    compute='_compute_demand_period_ids' context={'active_test': False} inverse='_inverse_demand_period_ids' string='Demand periods' args: 'product.demand.period'
Public methods (0)

No public methods.

New fields (1)
  • demand_period_info Json
    compute='_compute_demand_period_info' help='Past demand per period. Periods can be configured in General Settings.' string='Demand by period'
Public methods (0)

No public methods.