Repository
OCA/ddmrp · module folder · Try on Runboat
Module version
1.0.0
Category
Warehouse
Folder size
0.1 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/ddmrp
Last tracking update
2026-08-07 09:06:36
Authors
Odoo Community Association (OCA), ForgeFlow
Maintainers
Odoo Community Association (OCA), ForgeFlow
Committers
oca-ci, github-actions[bot]
Odoo dependencies
Python dependencies
bokeh==3.9.0
System dependencies
None
Required by
None
Description
Allow to extend DDMRP App to be able to apply Adjustments for
dynamically altering buffers for planned or anticipated events. This
include:

- **Demand Adjustment Factor (DAF)**: is a manipulation of the ADU input
  within a specific time period. The system will look for existing DAFs
  when computing the ADU for each buffer and apply them. The system will
  also explode the resulting increase in demand of parent buffers to all
  their children buffers using the BoM.
- **Lead Time Adjustment Factor (LTAF)**: manipulates the Decoupled Lead
  Time for an individual part or group of parts (buffer profile, same
  partner...) to adjust for a planned or known expansions of LT.
- **Zone Adjustment Factor (ZAF)**: Adjustment done to any of the zones
  of the buffer to modify the ordering size and frequency (green),
  demand coverage (yellow) or safety (red).

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
stock_buffer_view_form stock.buffer.form stock.buffer form Inherits ddmrp.stock_buffer_view_form
view_ddmrp_adjustment_demand_tree ddmrp.adjustment.demand.tree ddmrp.adjustment.demand list New
view_ddmrp_adjustment_graph ddmrp.adjustment.graph ddmrp.adjustment graph New
view_ddmrp_adjustment_search ddmrp.adjustment.search ddmrp.adjustment search New
view_ddmrp_adjustment_tree ddmrp.adjustment.tree ddmrp.adjustment list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (11)
  • adjustment_type Selection
    required=True selection=[(DAF_string, 'Demand Adjustment Factor'), (LTAF_string, 'Lead Time Adjustment Factor'), (RZAF_string, 'Red Zone Adjustment Factor'), (YZAF_string, 'Yellow Zone Adjustment Factor'), (GZAF_string, 'Green Zone Adjustment Factor')]
  • buffer_id Many2one → stock.buffer
    comodel_name='stock.buffer' required=True string='Buffer'
  • company_id Many2one → res.company
    comodel_name='res.company' related='buffer_id.company_id'
  • date_end Date
    compute='_compute_dates' store=True string='End date'
  • date_range_id Many2one → date.range
    comodel_name='date.range' string='Date Range'
  • date_start Date
    compute='_compute_dates' store=True string='Start Date'
  • location_id Many2one → stock.location
    comodel_name='stock.location' readonly=True related='buffer_id.location_id'
  • manual_date_end Date
    string='End Date (Manual)'
  • manual_date_start Date
    string='Start Date (Manual)'
  • product_id Many2one → product.product
    comodel_name='product.product' readonly=True related='buffer_id.product_id'
  • value Float
    aggregator='avg'
Public methods (0)

No public methods.

New fields (9)
  • buffer_id Many2one → stock.buffer
    comodel_name='stock.buffer' string='Apply to'
  • buffer_origin_id Many2one → stock.buffer
    comodel_name='stock.buffer' ondelete='cascade' required=True string='Originated from'
  • company_id Many2one → res.company
    comodel_name='res.company' related='buffer_id.company_id'
  • date_end Date
    string='End date'
  • date_start Date
    string='Start date'
  • extra_demand Float
  • product_id Many2one
    related='buffer_id.product_id'
  • product_origin_id Many2one
    related='buffer_origin_id.product_id' string='Origin Product'
  • product_uom_id Many2one → uom.uom
    comodel_name='uom.uom' related='buffer_id.product_uom' string='Unit of Measure'
Public methods (0)

No public methods.

New fields (13)
  • count_ddmrp_adjustment_demand Integer
    compute='_compute_count_ddmrp_adjustment_demand'
  • daf_applied Float
    default=-1 readonly=True
  • daf_text Char
    compute='_compute_daf_text'
  • extra_demand_ids One2many → ddmrp.adjustment.demand
    comodel_name='ddmrp.adjustment.demand' help='Demand associated to Demand Adjustment Factors applied to parent buffers.' inverse_name='buffer_id' string='Extra Demand'
  • gzaf_applied Float
    default=-1 readonly=True
  • gzaf_text Char
    compute='_compute_zaf_text'
  • parent_daf_applied Float
    default=-1 readonly=True
  • parent_daf_text Char
    compute='_compute_daf_text'
  • pre_daf_adu Float
    readonly=True
  • rzaf_applied Float
    default=-1 readonly=True
  • rzaf_text Char
    compute='_compute_zaf_text'
  • yzaf_applied Float
    default=-1 readonly=True
  • yzaf_text Char
    compute='_compute_zaf_text'
Public methods (9)
  • action_archive(self)
  • action_view_affecting_adu(self)
  • action_view_affecting_green_zone(self)
  • action_view_affecting_red_zone(self)
  • action_view_affecting_yellow_zone(self)
  • action_view_demand_to_components(self)
  • action_view_parent_affecting_adu(self)
  • cron_ddmrp_adu(self, automatic=False, domain=None)
    @api.model
    Apply extra demand originated by Demand Adjustment Factors to components after the cron update of all the buffers.
  • explode_demand_to_components(self, daf, demand, uom_id)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…