Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6394 Tampilan

I have set up sales orders to automatically create manufacturing orders.  The sales order line "date_needed" field uses the products manufacturing lead time to create a manufacturing order "date_planned".   Also the  associated work orders "date_planned" fields  are also scheduled using the sales order date. This is all fine.

The problem is if production wants to reschedule the manufacturing order. The sales order confirmation also confirms the manufacturing order. Once a manufacturing order has been confirmed, the  "Scheduled Date" (date_planned) becomes read only.  I am able to change the work order's "date_planned", but only into the future. 

Does anyone know how to either make the sales order create "new" and not "confirmed" sales orders, or, even better, how to change a confirmed manufacturing order?

Avatar
Buang
Penulis Jawaban Terbai

Quick note.  The "date_needed" field is one I have created and it overrides the field (date_order)  Odoo uses  to calculate manufacturing order date.

I could just override the method  make_mo found in procurement.py, specifically this:

production_obj.signal_workflow(cr, uid, [produce_id], 'button_confirm')

but that may be overkill if there is already a way to accomplish this.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Sep 24
2090
1
Agu 24
2126
1
Jan 23
3057
3
Jan 23
10917
1
Okt 22
2541