Product Stock State
product_stock_state · OCA/product-attribute
Health
67/100
fair
-
Security25/25No findings
-
Activity12/25Last human commit 24 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_thresholdFloatdigits='Stock Threshold' -
stock_state_thresholdFloatcompute='_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=Truestore=True
No public methods.
New fields (1)
-
stock_stateSelectioncompute='_compute_stock_state'selection=[('in_stock', 'In Stock'), ('in_limited_stock', 'In Limited Stock'), ('resupplying', 'Resupplying'), ('out_of_stock', 'Out Of Stock')]
No public methods.
New fields (2)
-
manual_stock_state_thresholdFloatdigits='Stock Threshold' -
stock_state_thresholdFloatcompute='_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
No public methods.
New fields (1)
-
stock_state_thresholdFloatdefault=10digits='Stock Threshold'
No public methods.
New fields (1)
-
stock_state_thresholdFloathelp="Define custom value under which the stock state will pass from 'In Stock' to 'In Limited Stock' State."readonly=Falserelated='company_id.stock_state_threshold'string='Stock State Threshold'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…