Commit 86413587 by 夏超

[fix] 生产进度查询

parent 19715ad3
......@@ -100,7 +100,7 @@ class RokeWorkstationTaskModel(http.Controller):
for v in task_ids:
data = get_work_order(v, complete_basis)
sub_task = _self.env["roke.production.task"].sudo().search([("task_type", "=", "sub"),
("main_task_code", "=", v.code)],
("main_task_code", "=", (v.code or "") + "-1")],
order="code asc")
data["children"] = [get_work_order(child, complete_basis) for child in sub_task]
task_list.append(data)
......
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