恢复代码

This commit is contained in:
gqh
2023-01-29 15:42:33 +08:00
parent cfde389826
commit bdae9d9f95
18 changed files with 144 additions and 281 deletions

View File

@@ -27,7 +27,8 @@ class Sf_Mrs_Connect(http.Controller):
# 查询状态为进行中且类型为获取CNC加工程序的工单
cnc_workorder = request.env['mrp.workorder'].with_user(
request.env.ref("base.user_admin")).search([('production_id.name', '=', ret['production_order_no']),
('routing_type', '=', '获取CNC加工程序')])
('routing_type', '=', '获取CNC加工程序'),
('state', '=', 'progress')])
if cnc_workorder:
# 拉取所有加工面的程序文件
# i = 1