product_sequence
Automatically generate unique product internal references using configurable sequences and category prefixes.
Key Features
- product.product: Internal reference is required and auto-generated from the relevant sequence when missing or set to '/', with copies defaulting to a '-copy' suffix and single-variant templates kept in sync.
- product.category: Adds a prefix field that creates or updates a dedicated sequence per category to drive internal reference generation.
- ir.sequence: Selects the category’s sequence for numbering and falls back to the global product sequence when none is defined.
- res.config.settings: Company-level option allows inheriting prefix and sequence from parent categories when the current category lacks its own settings.
- installation: Pre-init hook replaces empty or '/' internal references with temporary values to prevent installation failures.