[ADD] sale_product_kit: introduce configurable kit products#1318
Draft
aykhu-odoo wants to merge 1 commit into
Draft
[ADD] sale_product_kit: introduce configurable kit products#1318aykhu-odoo wants to merge 1 commit into
aykhu-odoo wants to merge 1 commit into
Conversation
15807cf to
0842422
Compare
Some products are sold as a single item but consist of multiple components whose quantities and prices may vary from one order to another. Managing these components as regular sale order lines makes it difficult to keep a single commercial price while still retaining the component details required for stock operations. This module introduces a kit product type with configurable sub-products. When a kit is added to a sale order, users can configure the quantity and pricing of each component through a dedicated wizard. The kit is represented by a parent sale order line, while its components are stored as linked child lines. Component prices are aggregated on the parent line, whereas child lines are created with a zero sales price and are retained to generate the required stock moves. To keep kit data consistent, component lines cannot be modified directly from the sale order. Changes must be performed through the kit configuration wizard, ensuring that parent and child line values remain synchronized. Different businesses may prefer to expose either the kit breakdown or only the final commercial product to customers. A print option is added on the sale order to control whether kit components are displayed on sale order, portal, and invoice reports.
0842422 to
05b34a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Some products are sold as a single commercial item while being composed of multiple configurable components. Managing such products through regular sale order lines makes it difficult to maintain a single sales price while still retaining the component information required for stock operations.
Solution
Introduce a new Kit Product type that allows products to be configured with predefined sub-products.
When a kit product is added to a sale order, users can configure the quantity and pricing of each component through a dedicated wizard. The configured components are automatically created as linked child sale order lines.
The commercial value of the kit is stored on the parent line, while component lines are created with a zero sales price and retained to generate the required stock moves.
To ensure data consistency, kit component lines cannot be modified directly from the sale order and must be managed through the kit configurator.
A new option is also added on the sale order to control whether kit components should be displayed on quotations, portal views, and invoices, allowing users to choose between a summarized or detailed customer-facing document.