采购申请、待质检消息通知优化
This commit is contained in:
@@ -12,7 +12,7 @@ class SFMessagePurchaseRequest(models.Model):
|
||||
def write(self, vals):
|
||||
original_state = self.state
|
||||
res = super(SFMessagePurchaseRequest, self).write(vals)
|
||||
if res and vals.get('state') == 'approved' and original_state != 'approved':
|
||||
if vals.get('state') == 'approved' and original_state != 'approved':
|
||||
self.add_queue('采购申请待处理通知')
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user