Skip to content

product_kit: Add option to set as kit #710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 18.0
Choose a base branch
from

Conversation

sris-odoo
Copy link

@sris-odoo sris-odoo commented Apr 14, 2025

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.

@robodoo
Copy link

robodoo commented Apr 14, 2025

Pull request status dashboard

@sris-odoo sris-odoo force-pushed the 18.0-product-kit-sris branch from dd73d49 to 93e52f2 Compare April 15, 2025 11:39
In this commit
- Added boolean field `isKit` to mark a product as a kit
- Introduced a Many2many field to assign sub-products to the kit
- Sub-product field is conditionally visible only when `isKit` is enabled
@sris-odoo sris-odoo changed the title [ADD] product_kit: Add option to set as kit product_kit: Add option to set as kit Apr 15, 2025
In this commit
- Added a button for kit-type products in the sale order line
- Button opens a popup wizard displaying all related sub-products
- Button is invisible if the product is unmarked as a kit or SO is confirmed
- Wizard fields are editable for quantity and price adjustments
- Confirming the wizard adds sub-products as separate sale order lines
- Automatically calculates the main product's price based on sub-products
- Sub-product sale order lines have their price set to 0
- Added a "Print in Report" boolean field on the sale order
- If enabled, sub-product info is displayed in invoice report and preview page
- When the main kit product is deleted, related sub-product lines are  deleted
@sris-odoo sris-odoo force-pushed the 18.0-product-kit-sris branch from 93e52f2 to 9659ebb Compare April 15, 2025 12:14
@sris-odoo sris-odoo marked this pull request as ready for review April 16, 2025 06:05
@dhrs-odoo
Copy link

Hello @sris-odoo
given changes

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.

3 participants