Merge branch 'feature/调拨质检消息优化' into feature/调拨质检消息优化_1
This commit is contained in:
@@ -53,7 +53,12 @@ class SFMessageStockPicking(models.Model):
|
||||
mrp_production.add_queue('工序外协发料通知')
|
||||
if record.quality_check_ids and all(
|
||||
qc.quality_state in ['pass', 'fail'] for qc in record.quality_check_ids):
|
||||
record.add_queue('调拨单质检完成提醒')
|
||||
message_template_id = self.env["jikimo.message.template"].sudo().search(
|
||||
[('name', '=', '调拨单质检完成提醒')])
|
||||
stock_picking_send = self.env["jikimo.message.queue"].sudo().search(
|
||||
[('res_id', '=', record.id), ('message_template_id', '=', message_template_id.id)])
|
||||
if not stock_picking_send:
|
||||
record.add_queue('调拨单质检完成提醒')
|
||||
except Exception as e:
|
||||
logging.info('add_queue_compute_state error:%s' % e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user