还原OCC代码
This commit is contained in:
@@ -1094,9 +1094,7 @@ class ResMrpWorkOrder(models.Model):
|
||||
|
||||
# move_out._action_assign()
|
||||
if self.state == 'waiting' or self.state == 'ready' or self.state == 'progress':
|
||||
print(self.production_id.move_raw_ids)
|
||||
self.move_raw_ids = self.production_id.move_raw_ids
|
||||
print(self.move_raw_ids)
|
||||
self.move_raw_ids[0].write({
|
||||
'materiel_length': self.move_raw_ids[0].product_id.length,
|
||||
'materiel_width': self.move_raw_ids[0].product_id.width,
|
||||
@@ -1266,7 +1264,6 @@ class ResMrpWorkOrder(models.Model):
|
||||
'is_trayed': False
|
||||
})
|
||||
|
||||
|
||||
# 将FTP的检测报告文件下载到临时目录
|
||||
def download_reportfile_tmp(self, workorder, reportpath):
|
||||
logging.info('reportpath/ftp地址:%s' % reportpath)
|
||||
@@ -1661,7 +1658,6 @@ class WorkPieceDelivery(models.Model):
|
||||
|
||||
agv_scheduling_id = fields.Many2one('sf.agv.scheduling', 'AGV任务调度')
|
||||
|
||||
|
||||
@api.model
|
||||
def create(self, vals):
|
||||
if vals.get('route_id') and vals.get('type') is None:
|
||||
@@ -1751,7 +1747,6 @@ class WorkPieceDelivery(models.Model):
|
||||
'default_confirm_button': '确认配送'
|
||||
}}
|
||||
|
||||
|
||||
# 验证agv站点是否可用
|
||||
def _check_avgsite_state(self):
|
||||
is_free = False
|
||||
@@ -1856,7 +1851,6 @@ class WorkPieceDelivery(models.Model):
|
||||
obj.delivery_duration = 0.0
|
||||
|
||||
|
||||
|
||||
class CMMprogram(models.Model):
|
||||
_name = 'sf.cmm.program'
|
||||
_description = "CMM程序"
|
||||
|
||||
Reference in New Issue
Block a user