[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:
Josse Colpaert 2016-02-16 17:41:59 +01:00
parent b21773456c
commit eafebcb308
1 changed files with 1 additions and 0 deletions

View File

@ -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,