显示优化,物流下单增补逻辑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user