summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-02-07 16:42:57 +0100
committerNicolas Martinelli <nim@odoo.com>2017-02-07 17:18:28 +0100
commit88af7c939269c8decd94a01c7ef2b95b0cd4a892 (patch)
tree1f8f9c9e600090758b26fdde82e53abd4ebe0ee5
parent17f3185994cf790b96389e88fb306053d127e1a9 (diff)
[FIX] mrp: expected date
When a MO is created with a deadline start date in the future, the scheduled date of the stock move is still the creation date. opw-707396
-rw-r--r--addons/mrp/models/mrp_production.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mrp/models/mrp_production.py b/addons/mrp/models/mrp_production.py
index e589ebd5a4a..c19cd67771d 100644
--- a/addons/mrp/models/mrp_production.py
+++ b/addons/mrp/models/mrp_production.py
@@ -323,6 +323,7 @@ class MrpProduction(models.Model):
data = {
'name': self.name,
'date': self.date_planned_start,
+ 'date_expected': self.date_planned_start,
'bom_line_id': bom_line.id,
'product_id': bom_line.product_id.id,
'product_uom_qty': quantity,