Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 24 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 6 Odoo series since 12.0

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

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

Description

This module adds a "stock state" field on the product in order to inform the user of its general stock state at a glance.

The state value can be :

  • In Stock
  • In Limited Stock (if qty available is under a threshold)
  • Resupplying (if qty forcasted is > 0)
  • Out of Stock (otherwise)

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

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

Views touched 5

XML IDNameModelTypeStatus
res_company_view_form_threshold res.company.threshold res.company form Inherits base.view_company_form
res_config_settings_view_form_threshold res.config.settings.threshold res.config.settings form Inherits stock.res_config_settings_view_form
view_product_category_form product.category form Inherits product.product_category_form_view
view_product_product_tree product.product tree Inherits stock.view_stock_product_tree
view_product_template_form product.template form Inherits stock.view_template_property_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (2)
  • manual_stock_state_threshold Float
    digits='Stock Threshold'
  • stock_state_threshold Float
    compute='_compute_stock_state_threshold' digits='Stock Threshold' help="The custom value under which the stock state of the products of this category will pass from 'In Stock' to 'In Limited Stock' State. If not set, Odoo will use the threshold defined at the company level." recursive=True store=True
Public methods (0)

No public methods.

New fields (1)
  • stock_state Selection
    compute='_compute_stock_state' selection=[('in_stock', 'In Stock'), ('in_limited_stock', 'In Limited Stock'), ('resupplying', 'Resupplying'), ('out_of_stock', 'Out Of Stock')]
Public methods (0)

No public methods.

New fields (2)
  • manual_stock_state_threshold Float
    digits='Stock Threshold'
  • stock_state_threshold Float
    compute='_compute_stock_state_threshold' digits='Stock Threshold' help="Define custom value under which the stock state will pass from 'In Stock' to 'In Limited Stock' State. If not set, Odoo will use the value defined in the product category. If no value is defined in product category, it will use the value defined for the company" store=True
Public methods (0)

No public methods.

New fields (1)
  • stock_state_threshold Float
    default=10 digits='Stock Threshold'
Public methods (0)

No public methods.

New fields (1)
  • stock_state_threshold Float
    help="Define custom value under which the stock state will pass from 'In Stock' to 'In Limited Stock' State." readonly=False related='company_id.stock_state_threshold' string='Stock State Threshold'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…