工单已下发通知
This commit is contained in:
@@ -8,8 +8,9 @@ class SFMessageWork(models.Model):
|
||||
@api.depends('production_availability', 'blocked_by_workorder_ids.state')
|
||||
def _compute_state(self):
|
||||
super(SFMessageWork, self)._compute_state()
|
||||
if self.state == 'ready' and self.routing_type == '装夹预调':
|
||||
self.add_queue('工单已下发通知')
|
||||
for workorder in self:
|
||||
if workorder.state == 'ready' and workorder.routing_type == '装夹预调':
|
||||
workorder.add_queue('工单已下发通知')
|
||||
|
||||
def _get_message(self, message_queue_ids):
|
||||
contents = []
|
||||
|
||||
Reference in New Issue
Block a user