[FIX] mrp: for the consume move lines, the expected date should also be the planned date of the production order
It was like that for the date field, which is taken into account for the forecast quantity, but in the view the scheduled date field is shown. We put the scheduled date equal to the date. That way it is clear to the user when the products are foreseen to be consumed.
This commit is contained in:
parent
b21773456c
commit
eafebcb308
|
@ -1204,6 +1204,7 @@ class mrp_production(osv.osv):
|
|||
move_id = stock_move.create(cr, uid, {
|
||||
'name': production.name,
|
||||
'date': production.date_planned,
|
||||
'date_expected': production.date_planned,
|
||||
'product_id': product.id,
|
||||
'product_uom_qty': qty,
|
||||
'product_uom': uom_id,
|
||||
|
|
Loading…
Reference in New Issue