Commit 2e1639c0 by 夏超

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

parent 6dc2a20a
......@@ -106,7 +106,7 @@ class InheritRokeWorkstationPicking(RokeWorkstationPicking):
"demand_qty": v.get("demand_qty", 0)
})
picking_type_id = http.request.env.sudo().ref(
picking_type_id = http.request.env.ref(
'roke_mes_stock.stock_picking_type_production_out',
raise_if_not_found=False
)
......@@ -131,7 +131,7 @@ class InheritRokeWorkstationPicking(RokeWorkstationPicking):
for task_id, picking_line_vals in task_id_dict.items():
task_obj = http.request.env["roke.production.task"].sudo().search([("id", "=", task_id)])
picking_type_id = http.request.env.sudo().ref(
picking_type_id = http.request.env.ref(
'roke_mes_stock.stock_picking_type_production_out',
raise_if_not_found=False
)
......
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