拉取最新代码

This commit is contained in:
qihao.gong@jikimo.com
2024-01-09 14:17:38 +08:00
parent e6c77e7b35
commit 1a896a730e
5 changed files with 12 additions and 12 deletions

View File

@@ -207,9 +207,9 @@ class ResMrpWorkOrder(models.Model):
# elif route.routing_type == '获取CNC加工程序':
# duration_expected = self.env['mrp.routing.workcenter'].sudo().search(
# [('name', '=', '获取CNC加工程序')]).time_cycle
elif route.routing_type == '装夹预':
elif route.routing_type == '装夹预':
duration_expected = self.env['mrp.routing.workcenter'].sudo().search(
[('name', '=', '装夹预')]).time_cycle
[('name', '=', '装夹预')]).time_cycle
# elif route.routing_type == '前置三元定位检测':
# duration_expected = self.env['mrp.routing.workcenter'].sudo().search(
# [('name', '=', '前置三元定位检测')]).time_cycle
@@ -495,7 +495,7 @@ class ResMrpWorkOrder(models.Model):
# 重写工单开始按钮方法
def button_start(self):
if self.routing_type == '装夹预' and self.production_id.move_raw_ids[0].move_line_ids[0].lot_id.name:
if self.routing_type == '装夹预' and self.production_id.move_raw_ids[0].move_line_ids[0].lot_id.name:
self.pro_code = self.production_id.move_raw_ids[0].move_line_ids[0].lot_id.name
# 外协出库单,从“正在等待”变为“就绪”状态
if self.is_subcontract is True: