Commit 03796666 by 夏超

[fix] 工位机获取工序名称

parent 945b7867
......@@ -29,7 +29,7 @@ class InheritRokeWorkstationWorkOrder(RokeWorkstationWorkOrder):
work_order = _self.env["roke.work.order"].search([("id", "=", work_order_id)])
next_work_order = _self.env["roke.work.order"].search([("id", "=", res.get("data", {}).get("id", 0))])
res.get("data", {}).update({
"next_wo_code": next_work_order.next_wo_id.code or ""
"next_process_name": next_work_order.next_wo_id.process_id.name or ""
})
if not work_order_id or not work_order:
return res
......
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