odoo/tutorials#710

Created by Rishav Shah (sris)

Blocked

label
odoo-dev:18.0-product-kit-sris
head
9659ebbbc0f8292d500597b3a8dc45f355ef07a9
odoo/tutorials
18.0 #710 missing r+
master

product_kit: Add option to set as kit

Odoo Development Progress (2-Days Summary)

Odoo Product Kit Feature Development

Day 1: [Product Kit] Model Setup & Configuration

  • Added a boolean field is_kit on product.template to mark products as kits.
  • Introduced a Many2many field for assigning sub-products to a kit product.
  • Made sub-product field conditionally visible only when is_kit is enabled.
  • Laid the foundation for kit-based product structuring in the Sales module.

Day 2: [Product Kit] Wizard, Sale Order Handling & Reporting

  • Added a "Configure Kit" button on Sale Order Lines for kit products.
  • Button opens a popup wizard displaying all related sub-products.
  • Made the button invisible if the product is not a kit or if the sale order is confirmed.
  • Wizard allows editing sub-product quantities and unit prices.
  • On confirmation, sub-products are added as separate sale order lines.
  • Sub-product lines have price_unit = 0, and total price is rolled up to the main kit product.
  • Added a "Print in Report" boolean field to the sale order.
  • If enabled, sub-products are shown in the invoice report and preview page.
  • Implemented cascade delete: deleting the main kit product also removes its sub-products from the order.