[FIX] purchase: avoid updating data_planned on section/note
Do not update the date_planned of section/note purchase lines when the date is changed on the order. Based on f3ebab6eb52e3dc8be1f030aecfff348a22f7e09 opw-2429853 closes odoo/odoo#64458 X-original-commit: c1d5a077f26d5cb5f42888f21dafd78e3432853f Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
This commit is contained in:
@@ -196,7 +196,7 @@ class PurchaseOrder(models.Model):
|
||||
@api.onchange('date_planned')
|
||||
def onchange_date_planned(self):
|
||||
if self.date_planned:
|
||||
self.order_line.date_planned = self.date_planned
|
||||
self.order_line.filtered(lambda line: not line.display_type).date_planned = self.date_planned
|
||||
|
||||
@api.model
|
||||
def create(self, vals):
|
||||
|
||||
Reference in New Issue
Block a user