From eafebcb308a6214330479359ee00f460387df7d1 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Tue, 16 Feb 2016 17:41:59 +0100 Subject: [PATCH] [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. --- addons/mrp/mrp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 099ae0fbacc..563e3a8d1c3 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -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,