product_state
Adds configurable lifecycle states to product templates with default statuses and UI controls for managing product availability.
Key Features
- product.state: Provides configurable product lifecycle records with name/code, sequence ordering, active/default flags, translated descriptions, product counts, and enforces unique codes with a single default state.
- product.template: Adds a status field linked to product.state with default selection, computed code storage, validation when setting states by code, and group expansion for state filtering.
- product.lifecycle: Preloads draft, sellable (default), end, and obsolete states for immediate use.
- product.template views: Shows a clickable state status bar on the product form, adds the state column to product lists, and enables search filters and grouping by state.
- product.state views: Supplies kanban, list, and form views with a stat button linking to products in the state and actions to open those products.
- product.template migration: Post-init hook assigns the default sellable state to existing products that lack one on installation.