Skip to Content
Menu
This question has been flagged
2 Replies
977 Views

Hi all,

In manufacturing - configuration -  operation,  is  it  possible  to  have  1  operation  assigned  to  multiple  BOMs? 


My  thought  process  is  some  tasks  are  generic  (like  assembly,  so  could  be  assigned  to  multiple  BOMs,  but  seems  like  Odoo  doesn't  allow  this....

\

Thanks!  

Avatar
Discard
Best Answer

1. Either create "Template BoM's" that you can copy

2. Customize Odoo

It is possible to customize Odoo and not that complicated to provide a way to copy an existing Operation:

1. Create a Custom Field to link an Operation to another Operation:




2. Create a Custom Field that will "listen" for Users selecting an Operation and will "copy" the information:




for record in self:
if record.x_existing_op_id:
existing_op = record.x_existing_op_id
record['name'] = existing_op.name
record['workcenter_id'] = existing_op.workcenter_id.id
record['worksheet_type'] = existing_op.worksheet_type
record['note'] = existing_op.note
record['time_mode'] = existing_op.time_mode
record['time_cycle_manual'] = existing_op.time_cycle_manual
record['time_mode_batch'] = existing_op.time_mode_batch



3. Add the two fields to the User Interface with a Custom View:





or





Then you get this:



These seven properties of the existing Operation are copied:



Note:  This is a proof of concept, designed to help you understand an approach that might be useful.  You may need to modify the code to suit your own needs.  Possible enhancements are to limit operations if they have already been selected, or if they are not compatible with the product you are creating.  This has been tested very quickly and some of the Operation information may not be moved over - in this case simply add any missing fields.  Odoo or an Odoo Partner can help you here if you don't have the skills or time to do this yourself.


Avatar
Discard
Author

Hi Ray, this was a great help, but following your steps I get an error when saving the custom view that:

"you cannot create recursive inherited views"

I imagine this is because my model data field is populated (mrp.routing.workcenter.form) - please see screenshot below. I can not remove the model in the model_data field....do you know what I'm doing wrong? (screenshot: https://ibb.co/6WdqgG4)

Thank you

Your screenshot indicates you are not creating your custom View, but editing a base Odoo View. From the Views Menu, click CREATE and match what you create to MY screenshot above.

Best Answer

You can create a BOM including the components as a KIT, as well as phantom BOM. Please watch this video to get an idea - https://www.youtube.com/watch?v=4PVPRlIcoc8

Avatar
Discard