Revert "[FIX] purchase: update order_lines date_planned"

This reverts commit dcf50bf242.

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
This commit is contained in:
Nicolas Lempereur
2016-12-14 08:43:46 +01:00
parent 438247f1f4
commit f1973fa0a7
+1 -3
View File
@@ -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):