Commit 08bd0761 by 夏超

[fix] 上推领料单数据修改

parent 638f7b41
......@@ -98,8 +98,8 @@ class InheritRokeWorkstationPicking(RokeWorkstationPicking):
return res
task_id_dict = []
for v in line_data:
product = http.request.env["roke.product"].sudo().search([("id", v.get("material_id", 0))])
task_id = http.request.env["roke.production.task"].sudo().search([("id", v.get("task_id", 0))])
product = http.request.env["roke.product"].sudo().search([("id", "=", v.get("material_id", 0))])
task_id = http.request.env["roke.production.task"].sudo().search([("id", "=", v.get("task_id", 0))])
task_id_dict.append({
"material_code": product.code or "",
"code": task_id.code or "",
......
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