坯料采购提醒

This commit is contained in:
guanhuan
2024-09-25 10:48:35 +08:00
parent 7a8753408b
commit 155c5eb329
2 changed files with 13 additions and 9 deletions

View File

@@ -6,12 +6,4 @@ class SFMessagePurchase(models.Model):
_name = 'purchase.order'
_inherit = ['purchase.order', 'jikimo.message.dispatch']
@api.model_create_multi
def create(self, vals_list):
res = super(SFMessagePurchase, self).create(vals_list)
if res:
try:
res.add_queue('坯料采购提醒')
except Exception as e:
logging.info('add_queue error:%s' % e)
return res