Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How can I change change scheduled date on confirmed manufacturing order

William Brugger
on 2/6/16, 12:04 PM 504 views

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?

William Brugger
On 2/6/16, 2:53 PM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 2/6/16, 12:04 PM
Seen: 504 times
Last updated: 2/6/16, 2:53 PM