Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
325 Lượt xem

Hi All,

We are currently in the process of setting up Odoo for our manufacturing operations. One feature we appreciate is the ability to attach instructions to operations in a bill of materials. However, we have encountered a challenge: we have two work centers where a specific operation can be performed, but each requires different instructions due to slight differences in the machines.

Is there a way to assign different instructions to the same operation depending on the work center in Odoo?

Thank you!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Option 1: Customization – Add Work Center-Specific Instructions

You can customize the mrp.routing.workcenter (aka Operation lines in Routing) model to include work center-specific instructions. Here's a high-level outline:

1. Add a One2many field on the operation to store multiple instructions:
class MrpRoutingWorkcenter(models.Model):

    _inherit = 'mrp.routing.workcenter'


    instruction_ids = fields.One2many(

        'mrp.workcenter.instruction', 'routing_wc_id', string="Work Center Instructions")

Create a model for mrp.workcenter.instruction:
class MrpWorkcenterInstruction(models.Model):

    _name = 'mrp.workcenter.instruction'

    _description = 'Work Center Specific Instruction'


    routing_wc_id = fields.Many2one('mrp.routing.workcenter', string="Routing Operation")

    workcenter_id = fields.Many2one('mrp.workcenter', string="Work Center")

    instruction = fields.Html(string="Instruction")

Update your views to allow editing instructions per work center.

Modify the work order UI or PDF report to show the correct instruction based on the work center.

Option 2: Duplicate Operation with Work Center-Specific Routing (Less dynamic)

  • Create two separate operations in the routing:
    • "Cutting - Machine A"
    • "Cutting - Machine B"
  • Assign the appropriate work center and instructions for each.
  • In the BoM, choose the correct routing depending on which machine is used.

This option is easy to implement but not as scalable if you have many overlapping operations.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
421
2
thg 9 18
5129
1
thg 11 17
5120
2
thg 3 15
5456
4
thg 1 25
6016