Skip to Content
Menú
This question has been flagged
1 Respondre
1965 Vistes

I have a bill of materials (BOM) for a kit, for a product called "Chicken with potatoes". The ingredients of the BOM are Chicken  and Potatoes.


When I create a sell order for "Chicken with potatoes" in POS, the generated picking order contains the ingredients "Chicken" and "Potatoes" as expected.


What I want is the same result when I create a scrap order. I want to select "Chicken with potatoes" as product and when I validate the order, to convert it to include the ingredients.


Is it possible?

Avatar
Descartar
Best Answer

It is not feasible in Odoo to automatically convert a scrap order for a kit product into its individual components (in this case, "chicken" and "potatoes"). Odoo's scrap order functionality does not support the automatic conversion of a kit product into its components by default.

However, by customizing the behavior of the scrap order process, you can accomplish the required result. Here's a high-level overview of how you can go about customizing this:

Make your own module: Create an Odoo custom module to change the default behavior of the scrap order process. 
 
Change the scrap order production process so that when a scrap order is made for a kit product, such as "Chicken with Potatoes," it also creates individual scrap orders for its components, i.e., "Chicken" and "Potatoes."

Connecting the scrap orders: Create a link between the main scrap order (for "Chicken with potatoes") and its sub-scrap orders (for "Chicken" and "Potatoes"). This is accomplished by including a field in the scrap order model that stores the reference to the primary scrap order.

Validate and synchronize the scrap orders: Create logic to ensure that the main scrap order and its component scrap orders are validated and synchronized at the same time. This means that when the main scrap order is approved, so are the component scrap orders.

Customize the process to automatically generate picking orders for component scrap orders, similar to how sale orders are generated. When the scrap orders are authenticated, the picking orders will include the individual components ("Chicken" and "Potatoes").

User interface enhancements (optional): If desired, you can also improve the user interface to provide a seamless experience for selecting the kit product and managing the scrap order process.

Avatar
Descartar
Autor

Thanks for the answer!

I think it's an omission from Odoo's part to not include this functionality.

I will try to create a custom solution to this, based on your suggestion!

Related Posts Respostes Vistes Activitat
1
de jul. 25
339
1
de des. 23
1413
1
de nov. 23
2528
0
d’abr. 21
3698
1
d’abr. 25
2161