Commit 9a7897b0 by 夏超

[fix] 东联逻辑修改

parent 418e3f63
......@@ -139,7 +139,7 @@ class InheritProductionTask(models.Model):
self.write({
"work_order_ids": self.change_routing_id_work_order(routing_id)
})
elif self.routing_id.state == "确认":
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({
"routing_task_id": self.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