summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2016-12-13 17:24:34 +0100
committerNicolas Lempereur <nle@odoo.com>2016-12-14 08:43:46 +0100
commitf1973fa0a78fd7e2ed0cee1e7e5f16a5a8f57517 (patch)
treedc99bd6b474f786362aeca3ae906b2d57566c2e2
parent438247f1f4243b255d77af5ad5aca56d634945c5 (diff)
Revert "[FIX] purchase: update order_lines date_planned"
This reverts commit dcf50bf2422b242c96d6b1ff33236fa0e56335ae. The commit should not have been forward-ported after 9.0 since Model update method has been @api.multi'ed. This also introduced an issue since changing the first line would change the date_planned of the order (which would alter subesquent updates). opw-697680
-rw-r--r--addons/purchase/purchase.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py
index ffc6a5cf3b3..8919d0bba6f 100644
--- a/addons/purchase/purchase.py
+++ b/addons/purchase/purchase.py
@@ -479,9 +479,7 @@ class PurchaseOrder(models.Model):
@api.multi
def action_set_date_planned(self):
for order in self:
- #DO NOT FORWARD PORT
- for line in order.order_line:
- line.update({'date_planned': order.date_planned})
+ order.order_line.update({'date_planned': order.date_planned})
class PurchaseOrderLine(models.Model):