tutorials
tutorials copied to clipboard
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_kitonproduct.templateto mark products as kits. - Introduced a
Many2manyfield for assigning sub-products to a kit product. - Made sub-product field conditionally visible only when
is_kitis 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.
Hello @sris-odoo given changes
