Accept Merge Request #1467: (feature/修复工单链接跳转 -> develop)

Merge Request: 修复工单链接跳转

Created By: @杨金灵
Reviewed By: @马广威
Approved By: @马广威 
Accepted By: @杨金灵
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1467
This commit is contained in:
杨金灵
2024-10-25 15:18:25 +08:00
committed by Coding

View File

@@ -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