Repository
OCA/ddmrp · module folder · Try on Runboat
Module version
1.0.0
Category
Warehouse Management
Folder size
0.07 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
Adds configuration warnings on stock buffers based on different
definitions. This modules include some basic warnings but you can create
your own based on your environment.

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
stock_buffer_search stock.buffer.search - ddmrp_warning stock.buffer search Inherits ddmrp.stock_buffer_search
stock_buffer_view_form stock.buffer.form stock.buffer form Inherits ddmrp.stock_buffer_view_form
view_ddmrp_warning_definition_form ddmrp.warning.definition.form ddmrp.warning.definition form New
view_ddmrp_warning_definition_search ddmrp.warning.definition.search ddmrp.warning.definition search New
view_ddmrp_warning_definition_tree ddmrp.warning.definition.tree ddmrp.warning.definition list New
view_ddmrp_warning_item_form ddmrp.warning.item.form ddmrp.warning.item form New
view_ddmrp_warning_item_search ddmrp.warning.item.search ddmrp.warning.item search New
view_ddmrp_warning_item_tree ddmrp.warning.item.tree ddmrp.warning.item list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (6)
  • active Boolean
    default=True
  • ddmrp_warning_item_ids One2many → ddmrp.warning.item
    comodel_name='ddmrp.warning.item' inverse_name='warning_definition_id' readonly=True
  • name Char
    string='Description'
  • python_code Text
    default='# Available locals:\n# - buffer: A buffer record\nTrue' help='Write Python code that defines when this warning should raise. The result of executing the expression must be a boolean.' string='Warning Expression'
  • severity Selection
    default='2_mid' selection=[('1_low', 'Low'), ('2_mid', 'Medium'), ('3_high', 'High')]
  • warning_domain Char
    default='[]' help='Domain based on Stock Buffer, to define if the warning is applicable or not.' string='Buffer Applicable Domain'
Public methods (2)
  • evaluate_definition(self, buffer)
  • write(self, vals)

New fields (7)
  • buffer_id Many2one → stock.buffer
    comodel_name='stock.buffer' ondelete='cascade'
  • company_id Many2one
    related='buffer_id.company_id' store=True
  • location_id Many2one
    groups='stock.group_stock_multi_locations' related='buffer_id.location_id'
  • name Char
    compute='_compute_name'
  • product_id Many2one
    related='buffer_id.product_id'
  • severity Selection
    readonly=True related='warning_definition_id.severity' store=True
  • warning_definition_id Many2one → ddmrp.warning.definition
    comodel_name='ddmrp.warning.definition' ondelete='cascade'
Public methods (0)

No public methods.

New fields (1)
  • ddmrp_warning_item_ids One2many → ddmrp.warning.item
    comodel_name='ddmrp.warning.item' inverse_name='buffer_id' readonly=True
Public methods (3)
  • action_generate_warnings(self)
  • cron_generate_ddmrp_warnings(self, automatic=False)
    @api.model
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…