工单已下发通知

This commit is contained in:
guanhuan
2024-09-25 14:31:31 +08:00
parent 4e0a023c36
commit 7c3ac138b5
4 changed files with 8 additions and 9 deletions

View File

@@ -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 = []