增加采购申请审批排除字段
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user