product_stock_state
Add a stock state indicator on products so users can quickly gauge availability.
Key Features
- product.product: Computes a stock_state indicator (In Stock, In Limited Stock, Resupplying, Out of Stock) using available quantity, incoming quantity, and the configured threshold.
- product.template: Stores a computed stock_state_threshold that can be manually set per product or inherited from its category or company.
- product.category: Provides an inheritable stock_state_threshold with optional manual override cascading through the category hierarchy.
- res.company: Holds the default stock_state_threshold for all products and categories with an initial default value.
- res.config.settings: Exposes the company stock_state_threshold in the configuration settings for adjustment.
- product views: Adds the stock_state column to the product list and shows threshold fields on product and category forms.
- security: Introduces groups that grant permission to manage stock state thresholds by product or by category.
- technical: Defines a dedicated Stock Threshold decimal precision for threshold calculations.