Commit 1f685a74 by 夏超

[fix] 修改问题

parent 787de668
......@@ -139,7 +139,6 @@ class InheritProductionTask(models.Model):
if not self.routing_id:
routing_id = self.env["roke.routing"].create({
"name": self.product_id.name or "",
"state": "确认",
"routing_task_id": self.id
})
self.write({
......@@ -151,7 +150,6 @@ class InheritProductionTask(models.Model):
elif not self.routing_id.routing_task_id or self.routing_id.routing_task_id.id != self.id:
routing_id = self.routing_id.copy()
routing_id.update({
"state": "确认",
"routing_task_id": self.id
})
self.write({"routing_id": routing_id.id})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment