Skip to content

[ADD] product_kit: add kit product management with sale order integration and configuration wizard#1350

Draft
vivah-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-add-product-kit-management-vivah
Draft

[ADD] product_kit: add kit product management with sale order integration and configuration wizard#1350
vivah-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-add-product-kit-management-vivah

Conversation

@vivah-odoo

Copy link
Copy Markdown

Purpose

This module allows users to define products as kits composed of multiple
component products. When added to a sale order, kits can be configured
via a wizard (quantities/prices per component) and automatically explode
into component lines upon order confirmation.

Task

Create a product_kit module under tutorials/ with the following structure:

  • product_template: is_kit boolean + kit_product_ids (One2many to components)
  • sale_order: kit_lines_count, action_confirm override for kit explosion
  • sale_order_line: kit_line_ids/parent_kit_line_id with unlink cascade
  • kit.config.wizard: TransientModel for interactive component configuration
  • Views: product form (is_kit toggle + Kit Components page), sale order
    form (Configure Kit gear icon on lines), wizard form
  • Security: model access rights

What Was Done

  • Defined product.kit.line model for storing kit component products
  • Extended sale.order.line with self-referential kit relationships
  • Extended sale.order to auto-explode kits on confirmation
  • Built a wizard for adjusting component quantities/prices before confirm
  • All views updated with Odoo 19 compatible syntax

How It Works

  1. Products → mark product as kit, define components with quantities
  2. Sale Order → add kit product, click gear icon to configure components
  3. Wizard → adjust component qty/price, confirm → parent becomes section
  4. Confirm order → component lines generate stock moves, kit line zeroed

Dependencies

  • base, sale, product, stock

Compatibility

  • Odoo 19 (uses tag, direct invisible attribute)

@robodoo

robodoo commented Jun 24, 2026

Copy link
Copy Markdown

Pull request status dashboard

@vivah-odoo vivah-odoo requested a review from mash-odoo June 24, 2026 13:14
Add 'is_kit' boolean and product.kit.line model to define kit
components on product templates. Include form view with is_kit
toggle, Kit Components stat button, and notebook page.
Add kit_line_ids/parent_kit_line_id on sale.order.line with
unlink cascade. Override action_confirm to explode kits into
component lines. Add gear icon on order lines for kit products.
Add TransientModel wizard to configure kit component quantities
and prices on sale order lines. Pre-populates from kit definition
and converts parent line to section header on confirm.
@vivah-odoo vivah-odoo force-pushed the 19.0-add-product-kit-management-vivah branch from 660c2c7 to 02b8cf3 Compare June 26, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants