消息提醒

This commit is contained in:
guanhuan
2024-12-24 14:49:17 +08:00
parent 88f3155132
commit 78eea6aad0
11 changed files with 68 additions and 40 deletions

View File

@@ -25,7 +25,8 @@ class SFMessageStockPicking(models.Model):
super(SFMessageStockPicking, self)._compute_state()
try:
for record in self:
if record.state == 'assigned' and record.picking_type_id.sequence_code == 'PC':
if (record.state == 'assigned' and record.picking_type_id.sequence_code == 'PC'
and record.product_id.categ_id.type == '坯料'):
record.add_queue('坯料发料提醒')
if record.picking_type_id.sequence_code == 'SFP' and record.state == 'done':