修改工单通知筛选条件
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
'data/cron_data.xml',
|
||||
'data/template_data.xml',
|
||||
'security/ir.model.access.csv',
|
||||
|
||||
'views/mrp_workorder_views.xml',
|
||||
],
|
||||
'test': [
|
||||
],
|
||||
|
||||
@@ -73,7 +73,7 @@ class SFMessageWork(models.Model):
|
||||
if record:
|
||||
i += 1
|
||||
if i >= 1:
|
||||
action_id = self.env.ref('sf_manufacturing.mrp_workorder_action_notify').id
|
||||
action_id = self.env.ref('sf_message.mrp_workorder_action_notify').id
|
||||
url_with_id = f"{url}/web#view_type=list&action={action_id}"
|
||||
content_template = content.replace('{{url}}', url_with_id)
|
||||
if bussiness_node in template_names['预警']:
|
||||
|
||||
Reference in New Issue
Block a user