调拨列表采购订单询价单页面优化
This commit is contained in:
@@ -23,7 +23,7 @@ class jikimo_purchase_tier_validation(models.Model):
|
||||
|
||||
def button_confirm(self):
|
||||
for record in self:
|
||||
if record.state in ['to approve']:
|
||||
if record.need_validation and not record.validation_status == 'validated':
|
||||
raise ValidationError(_('请先完成审批。'))
|
||||
res = super(jikimo_purchase_tier_validation, self).button_confirm()
|
||||
for record in self:
|
||||
|
||||
Reference in New Issue
Block a user