消息推送
This commit is contained in:
@@ -3,4 +3,16 @@ from odoo import models, fields, api, _
|
||||
|
||||
class SFMessagefunctionalToolAssembly(models.Model):
|
||||
_name = 'sf.functional.tool.assembly'
|
||||
_description = "刀具组装单"
|
||||
_inherit = ['sf.functional.tool.assembly', 'jikimo.message.dispatch']
|
||||
|
||||
@api.model_create_multi
|
||||
def create(self, vals):
|
||||
result = super(SFMessagefunctionalToolAssembly, self).create(vals)
|
||||
is_cam = False
|
||||
for obj in result:
|
||||
if obj.loading_task_source == '0' and obj.assemble_status == '0':
|
||||
is_cam = True
|
||||
if is_cam:
|
||||
self.add_queue('功能刀具组装')
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user