修复工单链接跳转
This commit is contained in:
@@ -80,9 +80,11 @@ class SFMessageWork(models.Model):
|
||||
'解除装夹': '工件拆卸',
|
||||
'表面工艺': '表面工艺外协',
|
||||
}
|
||||
workcenter_name = workcenter_mapping.get(business_node_key, '表面工艺外协')
|
||||
workcenter_name = workcenter_mapping.get(business_node_key)
|
||||
logging.info(workcenter_name)
|
||||
active_id = self.env['mrp.workcenter'].search([('name', 'ilike', workcenter_name)],
|
||||
limit=1).id
|
||||
logging.info(active_id)
|
||||
i += 1
|
||||
if i >= 1:
|
||||
action_id = self.env.ref('sf_message.mrp_workorder_action_notify').id
|
||||
|
||||
Reference in New Issue
Block a user