Commit 1516ca7c by 夏超

[fix] 修改工序指派

parent feae40d8
......@@ -39,14 +39,12 @@ class InheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
if not process_ids:
return {"code": 0, "message": "获取成功!", "data": [], "process_ids": [], "count": 0}
domain = [
"|",
("work_center_id", "=", workstation.workshop_id.id),
"&",
("work_center_id", "=", False),
("task_id.workshop_id", "=", workstation.workshop_id.id),
("process_id", "in", process_list),
("state", "in", ["未完工", "暂停"])
]
domain = expression.OR([domain, [("work_center_id", "=", workstation_id)]])
if priority:
domain.append(('task_id.priority', '=', priority))
if customer_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