tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

product_kit: Add option to set as kit

Open sris-odoo opened this issue 8 months ago • 2 comments

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.

sris-odoo avatar Apr 14 '25 08:04 sris-odoo

Pull request status dashboard

robodoo avatar Apr 14 '25 08:04 robodoo

Hello @sris-odoo given changes

dhrs-odoo avatar Apr 22 '25 09:04 dhrs-odoo