显示优化,物流下单增补逻辑

This commit is contained in:
mgw
2024-05-17 11:47:26 +08:00
parent d244409d9c
commit 432a012596
3 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ class JdEclp(models.Model):
"""
res = super(JdEclp, self).button_validate()
if self.check_out == 'OUT':
if self.logistics_way != '自提':
if self.logistics_way != '自提' and self.logistics_way:
if self.logistics_status != '2':
raise ValidationError('非自提订单,必须先下物流单,并获取物流面单后才可出库!')
return res