Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 8 Odoo series since 13.0

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

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

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.

Dependencies

Odoo dependencies
Python dependencies
bokeh==3.10.1
System dependencies
None
Required by
ddmrp_warning_as_job

Code analysis

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

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…

Loading…