增加采购申请审批排除字段

This commit is contained in:
胡尧
2025-05-20 16:49:08 +08:00
parent c23715a1ef
commit 87740dbee3

View File

@@ -22,3 +22,9 @@ class PurchaseRequest(models.Model):
self.state = 'approved' self.state = 'approved'
return res return res
@api.model
def _get_under_validation_exceptions(self):
res = super(PurchaseRequest, self)._get_under_validation_exceptions()
res.append("state")
return res