配置所有可采集数据
This commit is contained in:
@@ -18,13 +18,13 @@ _logger = logging.getLogger(__name__)
|
||||
|
||||
class UpSelectWizard(models.TransientModel):
|
||||
_name = 'up.select.wizard'
|
||||
_description = 'Up Select Wizard'
|
||||
|
||||
workorder_id = fields.Many2one('mrp.workorder', string='工单', readonly=True)
|
||||
workcenter_id = fields.Many2one('mrp.workcenter', string='工作中心', related='workorder_id.workcenter_id',
|
||||
readonly=True)
|
||||
program_ids = fields.Many2many('sf.cnc.processing', string='程序列表')
|
||||
|
||||
|
||||
def confirm_up(self):
|
||||
# 合并下发前删除机床上的全部程序
|
||||
try:
|
||||
@@ -106,4 +106,3 @@ class UpSelectWizard(models.TransientModel):
|
||||
item.button_state = False
|
||||
_logger.info("=====================================", e)
|
||||
raise UserError('NC下发执行超时, 请检查下发状态')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user