修复站点状态未变,及页面筛选框优化
This commit is contained in:
@@ -1081,9 +1081,7 @@ class WorkPieceDelivery(models.Model):
|
||||
delivery_num = fields.Char('工件配送编码')
|
||||
workorder_id = fields.Many2one('mrp.workorder', string='工单', readonly=True)
|
||||
production_id = fields.Many2one('mrp.production', string='制造订单号', readonly=True)
|
||||
production_line_id = fields.Many2one('sf.production.line', compute='_compute_production_line_id',
|
||||
string='目的生产线', readonly=True,
|
||||
store=True)
|
||||
production_line_id = fields.Many2one('sf.production.line', string='目的生产线')
|
||||
plan_start_processing_time = fields.Datetime('计划开始加工时间', readonly=True)
|
||||
|
||||
route_id = fields.Many2one('sf.agv.task.route', '任务路线')
|
||||
@@ -1235,13 +1233,7 @@ class WorkPieceDelivery(models.Model):
|
||||
raise UserError(ret['message'])
|
||||
except Exception as e:
|
||||
logging.info('config-e:%s' % e)
|
||||
raise UserError("工件配送请求agv失败")
|
||||
|
||||
@api.onchange('production_id.production_line_id')
|
||||
def _compute_production_line_id(self):
|
||||
if self.production_id.production_line_id:
|
||||
self.production_line_id = self.production_id.production_line_id.id
|
||||
self.plan_start_processing_time = self.production_id.plan_start_processing_time
|
||||
raise UserError("工件配送请求agv失败:%s" % e)
|
||||
|
||||
@api.depends('task_delivery_time', 'task_completion_time')
|
||||
def _compute_delivery_duration(self):
|
||||
|
||||
Reference in New Issue
Block a user