-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[18.0][ADD] sale_order_add_consumed_components #3761
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
base: 18.0
Are you sure you want to change the base?
Conversation
rousseldenis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bosd Could you check tests ?
|
A question about that:
If you bill the finished product, where is the risk of underbilling ??? |
e1b7b1d to
e1d79b0
Compare
In our use case, We are a contract manufacturer. The end products will be packaged. The packages that will be used are defined as Components on the bom. Without this module. The client will not be charged for the added "Packagings". Additional context: The "End products" are stored at the contract manufactureres facility. We want to trigger the Invoicing before we deliver the end products to the customer. As they can be held in storage for a long time. |
4a9111b to
3010738
Compare
3010738 to
910938a
Compare
Done. Tests of this module are ok now. The 18 branch needs fixing see: #3667 |
Use the price of the applicable pricelist instead of price on the product form.
🟢 now!! |
Business Need In many manufacturing workflows, products are sold to
customers via Sales Orders and subsequently manufactured through
Manufacturing Orders (MOs). Often, these manufactured products require
various components that are consumed during production and tracked via
Bills of Materials (BoMs).
However, in certain business scenarios, it's necessary not only to
manufacture a finished product but also to invoice the customer for the
individual components used in production, especially when the components
themselves are valuable, consumable, or customer-specific.
Odoo, by default, does not automatically add consumed components to the
related Sale Order. This leads to:
Module Purpose This module addresses the above gap by automatically
adding all
sale_ok=Truecomponents that were actually consumed in aManufacturing Order to the linked Sale Order. It ensures:
Compatibility with multiple MOs linked to the same SO (incrementing
quantities when the same component is used more than once).
Real word use case: This module is very usefull in a subcontractee
scenario. E.g. the customer is the owner of the component and
endproduct. But the subcontractee is providing operations over the
product and adding components. These components need to be invoiced
separately to the customer. In this scenario, the raw material supplied
by the customer is not saleble. (He already owns it and gives it in
consinee to the subcontractee.) The added components should be set up as
salebale products.
With this module installed and the scenario where consumption of the
components are added to a mo. Upon "mark done" of the MO the consumed
components are added to the sale order. Making them invoicable to the
customer.